Closed driftregion closed 3 days ago
make sure that sig.unit
is not None
make sure that
sig.unit
is notNone
Fantastic idea!
mdf.append(df, comment=db_msg.name, units={
sig.name: sig.unit if sig.unit else "" for sig in db_msg.signals
})
Lastly, I ran into this issue:
2024-11-18, 16:58:44
--------------------------------------------------------------------------------
<class 'TypeError'>
'NoneType' object is not subscriptable
--------------------------------------------------------------------------------
File "/home/user/.local/bin/asammdf", line 8, in <module>
sys.exit(main())
File "/home/user/repos/asammdf/src/asammdf/gui/asammdfgui.py", line 45, in main
_main_window = MainWindow(measurements or args.measurements)
File "/home/user/repos/asammdf/src/asammdf/gui/widgets/main.py", line 760, in __init__
self._open_file(name)
File "/home/user/repos/asammdf/src/asammdf/gui/widgets/main.py", line 1184, in _open_file
widget = FileWidget(
File "/home/user/repos/asammdf/src/asammdf/gui/widgets/file.py", line 538, in __init__
buses = lin_databases[::2]
which I fixed with
rm ~/.config/py-asammdf/py-asammdf.conf
Thanks @danielhrisca
Python version
Please run the following snippet and write the output here
Code
Code snippet
Traceback
Description
Hello, thanks for asammdf. I am a GUI user, converting various CAN log formats (.asc, .trc, .log, .csv, ...) with DBC to MDF for viewing in asammdf. I used to use the above script, but it is broken in recent releases of asammdf. Is there an existing tool or technique for this workflow?