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
Python error:
File "...\CSV2MDF4.venv39\lib\site-packages\numpy\lib\function_base.py", line 2455, in _vectorize_call
outputs = ufunc(*inputs)
File "...\CSV2MDF4.venv39\lib\site-packages\asammdf\blocks\utils.py", line 1698, in csv_bytearray2hex
val = val.tobytes()[:size].hex(" ", 1).upper()
<class 'AttributeError'>: 'bytes' object has no attribute 'tobytes'
2024-03-05, 11:26:32
<class 'AttributeError'>
'bytes' object has no attribute 'tobytes'
The source of the problem in your case is that the DataBytes is loaded from the dataframe as a category dtype, instead of as bytearray as is normally is for bus logging payload.
Python error:
File "...\CSV2MDF4.venv39\lib\site-packages\numpy\lib\function_base.py", line 2455, in _vectorize_call
outputs = ufunc(*inputs)
File "...\CSV2MDF4.venv39\lib\site-packages\asammdf\blocks\utils.py", line 1698, in csv_bytearray2hex
val = val.tobytes()[:size].hex(" ", 1).upper()
<class 'AttributeError'>: 'bytes' object has no attribute 'tobytes'
2024-03-05, 11:26:32
<class 'AttributeError'>
'bytes' object has no attribute 'tobytes'
I converted the below data
to mdf4 by below script"
I ran the program (asammdfgui.py/exe)
I loaded the data (.mdf4)
I chose the window type 'tabular'
Then the error appears
Here's my solution:
The text was updated successfully, but these errors were encountered: