danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
655 stars 226 forks source link

No block found for inverse conversion after cut function #1017

Closed fhaon closed 3 months ago

fhaon commented 6 months ago

Python version

('python=3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit ' '(AMD64)]') 'os=Windows-10-10.0.19044-SP0' 'numpy=1.24.2' 'asammdf=7.4.2'

Code

MDF version

4.11

Code snippet

from asammdf import MDF

with MDF(name="E:/RecordFile_24-05-13_09_40_46_355.mf4", temporary_folder="E:/", version='4.11') as mdf4:
    mdf4_cut = mdf4.cut(start=2.5, stop=7.5)
    mdf4_cut.save("E:/RecordFile_24-05-13_09_40_46_355_cut.mf4", overwrite=True)

Traceback

N/A

MDF Validator Error

error

Description

RecordFile_24-05-13_09_40_46_355.zip

The MDF file obtained after using the cut function has errors (No block found for the inverse conversion function)

error2

danielhrisca commented 6 months ago

@fhaon the inverse conversion is simply ignored. The latest development code will generate correct files (the link address is set to 0)