py_canoe 3.0.0__py3-none-any.whl → 3.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py_canoe/__init__.py +23 -10
- {py_canoe-3.0.0.dist-info → py_canoe-3.0.1.dist-info}/METADATA +1 -1
- py_canoe-3.0.1.dist-info/RECORD +6 -0
- py_canoe-3.0.0.dist-info/RECORD +0 -6
- {py_canoe-3.0.0.dist-info → py_canoe-3.0.1.dist-info}/LICENSE +0 -0
- {py_canoe-3.0.0.dist-info → py_canoe-3.0.1.dist-info}/WHEEL +0 -0
py_canoe/__init__.py
CHANGED
|
@@ -160,15 +160,15 @@ class CANoe:
|
|
|
160
160
|
self.__log.error(f'😡 Error creating new CANoe configuration: {str(e)}')
|
|
161
161
|
sys.exit(1)
|
|
162
162
|
|
|
163
|
-
def open(self, canoe_cfg: str, visible=True, auto_save=
|
|
163
|
+
def open(self, canoe_cfg: str, visible=True, auto_save=True, prompt_user=False, auto_stop=True) -> None:
|
|
164
164
|
"""Loads CANoe configuration.
|
|
165
165
|
|
|
166
166
|
Args:
|
|
167
167
|
canoe_cfg (str): The complete path for the CANoe configuration.
|
|
168
168
|
visible (bool): True if you want to see CANoe UI. Defaults to True.
|
|
169
|
-
auto_save (bool, optional): A boolean value that indicates whether the active configuration should be saved if it has been changed. Defaults to
|
|
169
|
+
auto_save (bool, optional): A boolean value that indicates whether the active configuration should be saved if it has been changed. Defaults to True.
|
|
170
170
|
prompt_user (bool, optional): A boolean value that indicates whether the user should intervene in error situations. Defaults to False.
|
|
171
|
-
auto_stop (bool, optional): A boolean value that indicates whether to stop the measurement before opening the configuration. Defaults to
|
|
171
|
+
auto_stop (bool, optional): A boolean value that indicates whether to stop the measurement before opening the configuration. Defaults to True.
|
|
172
172
|
"""
|
|
173
173
|
self.__init_canoe_application()
|
|
174
174
|
self.__init_canoe_application_measurement()
|
|
@@ -226,10 +226,10 @@ class CANoe:
|
|
|
226
226
|
True if measurement started. else False.
|
|
227
227
|
"""
|
|
228
228
|
try:
|
|
229
|
-
meas_run_sts = {True: "Started
|
|
229
|
+
meas_run_sts = {True: "Started 🏃♂️", False: "Not Started 🧍♂️"}
|
|
230
230
|
self.measurement_start_stop_timeout = timeout
|
|
231
231
|
if self.measurement_com_obj.Running:
|
|
232
|
-
self.__log.warning(f'⚠️ CANoe Measurement already running
|
|
232
|
+
self.__log.warning(f'⚠️ CANoe Measurement already running 🏃♂️')
|
|
233
233
|
else:
|
|
234
234
|
self.measurement_com_obj.Start()
|
|
235
235
|
if not self.measurement_com_obj.Running:
|
|
@@ -262,7 +262,7 @@ class CANoe:
|
|
|
262
262
|
True if measurement stopped. else False.
|
|
263
263
|
"""
|
|
264
264
|
try:
|
|
265
|
-
meas_run_sts = {True: "Not Stopped
|
|
265
|
+
meas_run_sts = {True: "Not Stopped 🏃♂️ ", False: "Stopped 🧍♂️"}
|
|
266
266
|
self.measurement_start_stop_timeout = timeout
|
|
267
267
|
if self.measurement_com_obj.Running:
|
|
268
268
|
self.measurement_com_obj.Stop()
|
|
@@ -336,9 +336,9 @@ class CANoe:
|
|
|
336
336
|
try:
|
|
337
337
|
self.measurement_com_obj.AnimationDelay = animation_delay
|
|
338
338
|
self.measurement_com_obj.Animate()
|
|
339
|
-
self.__log.debug(f'⏳ waiting for measurement to start
|
|
339
|
+
self.__log.debug(f'⏳ waiting for measurement to start 🏃♂️')
|
|
340
340
|
self.wait_for_canoe_meas_to_start()
|
|
341
|
-
self.__log.debug(f"👉 started
|
|
341
|
+
self.__log.debug(f"👉 started 🏃♂️ measurement in Animation mode with animation delay ⏲️ {animation_delay}")
|
|
342
342
|
except Exception as e:
|
|
343
343
|
self.__log.error(f'😡 Error starting measurement in animation mode: {str(e)}')
|
|
344
344
|
|
|
@@ -1029,7 +1029,7 @@ class CANoe:
|
|
|
1029
1029
|
if diag_device.tester_present_status != value:
|
|
1030
1030
|
if value:
|
|
1031
1031
|
diag_device.start_tester_present()
|
|
1032
|
-
self.__log.debug(f'
|
|
1032
|
+
self.__log.debug(f'⏱️🏃♂️ {diag_ecu_qualifier_name}: started tester present')
|
|
1033
1033
|
else:
|
|
1034
1034
|
diag_device.stop_tester_present()
|
|
1035
1035
|
self.__log.debug(f'⏱️🧍♂️ {diag_ecu_qualifier_name}: stopped tester present')
|
|
@@ -1240,7 +1240,7 @@ class CANoe:
|
|
|
1240
1240
|
test_environments = self.get_test_environments()
|
|
1241
1241
|
if len(test_environments) > 0:
|
|
1242
1242
|
for test_env_name in test_environments.keys():
|
|
1243
|
-
self.__log.debug(f'
|
|
1243
|
+
self.__log.debug(f'🏃♂️ started executing test environment "{test_env_name}"')
|
|
1244
1244
|
self.execute_all_test_modules_in_test_env(test_env_name)
|
|
1245
1245
|
self.__log.debug(f'✔️ completed executing test environment "{test_env_name}"')
|
|
1246
1246
|
else:
|
|
@@ -1303,6 +1303,13 @@ class CANoe:
|
|
|
1303
1303
|
self.__log.error(f'😡 failed to set system variable({env_var_name}) value. {e}')
|
|
1304
1304
|
|
|
1305
1305
|
def add_database(self, database_file: str, database_network: str, database_channel: int) -> bool:
|
|
1306
|
+
"""adds database file to a network channel
|
|
1307
|
+
|
|
1308
|
+
Args:
|
|
1309
|
+
database_file (str): database file to attach. give full file path.
|
|
1310
|
+
database_network (str): network name on which you want to add this database.
|
|
1311
|
+
database_channel (int): channel name on which you want to add this database.
|
|
1312
|
+
"""
|
|
1306
1313
|
try:
|
|
1307
1314
|
if self.get_measurement_running_status():
|
|
1308
1315
|
self.__log.warning('⚠️ measurement is running. not possible to add database')
|
|
@@ -1327,6 +1334,12 @@ class CANoe:
|
|
|
1327
1334
|
return False
|
|
1328
1335
|
|
|
1329
1336
|
def remove_database(self, database_file: str, database_channel: int) -> bool:
|
|
1337
|
+
"""remove database file from a channel
|
|
1338
|
+
|
|
1339
|
+
Args:
|
|
1340
|
+
database_file (str): database file to remove. give full file path.
|
|
1341
|
+
database_channel (int): channel name on which you want to remove database.
|
|
1342
|
+
"""
|
|
1330
1343
|
try:
|
|
1331
1344
|
if self.get_measurement_running_status():
|
|
1332
1345
|
self.__log.warning('⚠️ measurement is running. not possible to remove database')
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
py_canoe/__init__.py,sha256=Pjvcwh4vH4Pao9ABhE9XqmzxYmqV2yPGWXzxqjqD0ZY,109950
|
|
2
|
+
py_canoe/py_canoe_logger.py,sha256=nYdhgy6nLU6AGGwi0SxRa945uQHSyF1LU3amHWmSXQE,1306
|
|
3
|
+
py_canoe-3.0.1.dist-info/LICENSE,sha256=JCIp9hcSQAXxMXuV9QX7nEz2H52MbwyRq0GcQj3CPNE,1086
|
|
4
|
+
py_canoe-3.0.1.dist-info/METADATA,sha256=SnhlkMGoJ7iXM8CVaAOlMMFI-tSTRJ7lfoId-h4HTHg,2754
|
|
5
|
+
py_canoe-3.0.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
6
|
+
py_canoe-3.0.1.dist-info/RECORD,,
|
py_canoe-3.0.0.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
py_canoe/__init__.py,sha256=qPO6VWSKoP0Vc-1ehUVrPHtCTSp_EQFq7MpHGH3muaA,109429
|
|
2
|
-
py_canoe/py_canoe_logger.py,sha256=nYdhgy6nLU6AGGwi0SxRa945uQHSyF1LU3amHWmSXQE,1306
|
|
3
|
-
py_canoe-3.0.0.dist-info/LICENSE,sha256=JCIp9hcSQAXxMXuV9QX7nEz2H52MbwyRq0GcQj3CPNE,1086
|
|
4
|
-
py_canoe-3.0.0.dist-info/METADATA,sha256=wZQ7nwkSjC1SPqu8ULZR94-vwlI439qYEf4ME3HPLXk,2754
|
|
5
|
-
py_canoe-3.0.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
6
|
-
py_canoe-3.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|