Closed gdu2003 closed 6 years ago
Hi,
replace the block at https://github.com/danielhrisca/asammdf/blob/master/asammdf/mdf_v4.py#L783 with this
for i, signal_data_addr in enumerate(sig_data_list):
if signal_data_addr == 0x602b188:
print(grp['channels'][i])
sig_data_list[i] = self._load_signal_data(
address=signal_data_addr,
stream=stream,
)
Did that, see the new output below:
asammdf.MDF(mdf_file)
Expected CG, SD, DL, DZ or CN block at 0x602b008 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b068 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b0c8 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b128 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b188 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b1e8 but found id="b'##AT'"
<Channel (name: VIDEO_TIMECODE, unit: s, comment:
Out[61]: <asammdf.mdf.MDF at 0x2d47a9e8>
asammdf.MDF4(mdf_file)
Expected CG, SD, DL, DZ or CN block at 0x602b008 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b068 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b0c8 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b128 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b188 but found id="b'##AT'"
Expected CG, SD, DL, DZ or CN block at 0x602b1e8 but found id="b'##AT'"
<Channel (name: VIDEO_TIMECODE, unit: s, comment:
Out[62]: <asammdf.mdf_v4.MDF4 at 0x42653dd8>
It is not causing any issue in reading MF4 file i am getting all the Signals.
There is a video attachment which is referenced by your channel. There is no error in the sense that you probably don't need to handle the video frames in Python, but a tool such as CANape can use the video stream. In the current implementation the video attachment link is lost if you perform operations that create new files (cut, convert, concatenate, filter, stack)
@gdu2003 can you check if the latest development code works correctly?
Please re-open if there are still errors.
Python version
Please run the following snippet and write the output here
('python=3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit ' '(AMD64)]') 'os=Windows-7-6.1.7601-SP1' 'numpy=1.14.3' 'asammdf=3.5.0'
Code
MDF version
_please write here the file version (you can run
print(MDF(file).version)
)Code snippet
please write here the code snippet that triggers the error
Traceback
please write here the error traceback There is no error traceback.
Description
Please describe the issue here. After reading the file: Following things gets printed in console
Even if i use asammdf.MDF module to read MF4 file , i still get same output on console