You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Open log file and extract signals from raw bus formatwithMDF(LogFilePath) asmdf:
log_mdf=mdf.extract_bus_logging(database_files=db_dict)
Traceback
1. issue:
Returns [] instead of mdf object
2. issue:
Traceback (most recent call last):
File "_root_tests-mdf.py", line 44, in <module>
log_data_df = can.mdf.get_data(LogFilePath=MDFFilePath, DbFilePath=DBCFilePath2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "_root_src\raceoncan\utils\benchmark.py", line 43, in wrapper
value = func(*args,**kwargs)
^^^^^^^^^^^^^^^^^^^^
File "_root_src\raceoncan\mdf.py", line 146, in get_data
log_mdf = mdf.extract_bus_logging(database_files=db_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "_root_.venv\Lib\site-packages\asammdf\mdf.py", line 4784, in extract_bus_logging
out = self._extract_can_logging(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "_root_.venv\Lib\site-packages\asammdf\mdf.py", line 5123, in _extract_can_logging
out.extend(index, sigs)
File "_root_.venv\Lib\site-packages\asammdf\blocks\mdf_v4.py", line 5833, in extend
if (origin := invalidation_bits.origin) == InvalidationArray.ORIGIN_UNKNOWN:
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'numpy.ndarray' object has no attribute 'origin'
Description
The MDF.extract_bus_logging function block seems to has been significantly modified in 7.3.17 release, but since then, it struggles with extracting some standard raw CAN BUS log file (think it's CSS logger file) and returns empty list.
Other instance of problem is error and traceback when extracting bigger file from Vector software.
With asammdf 7.3.16 all works fine and function returns decoded mdf object in both cases.
Scrambled files can be provided if necessary.
Best regards,
Daniel
The text was updated successfully, but these errors were encountered:
Python version
('python=3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 '
'bit (AMD64)]')
'os=Windows-10-10.0.26100-SP0'
'numpy=1.26.4'
'asammdf>=7.3.17'
Code
MDF version
MDF 4.11
Code snippet
Traceback
1. issue:
Returns [] instead of mdf object
2. issue:
Description
The
MDF.extract_bus_logging
function block seems to has been significantly modified in 7.3.17 release, but since then, it struggles with extracting some standard raw CAN BUS log file (think it's CSS logger file) and returns empty list.Other instance of problem is error and traceback when extracting bigger file from Vector software.
With asammdf 7.3.16 all works fine and function returns decoded mdf object in both cases.
Scrambled files can be provided if necessary.
Best regards,
Daniel
The text was updated successfully, but these errors were encountered: