Closed sridhar-eswaran closed 1 year ago
You are appending the scaled values. Use this instead to preserve the raw values and the channel conversion
# channel_list -> List of signals to extract from a large MF4 file
mdf = MDF(mdf_file_path, channels=channel_list, use_display_names=False)
mdf.save('mdf_subset_path.mf4', overwrite=True)
mdf.close()
Thank you very much for your input. It is working after passing the 'raw=True' argument to the 'get' method.
for signalname in channels:
data = mdf.get(signalname,raw=True)
Python version
Please run the following snippet and write the output here
Code
MDF version
'4.10'
Code snippet
Traceback
No Error
Description
From the original file, I can view the ACCStatus signal as plot in both Canape and asammdf GUI
But from the subset MF4 file, I am unable to plot (in both tools)
I can view them as table/ numeric
Sample signals exported as pkl are shared in the link https://drive.google.com/file/d/1HVFwdkuJN3XC1nQ8wofgKE6hXHNNdmK7/view?usp=sharing Can you help me with this? Is this a limitation or am I doing something wrong? Appreciate your help. [Thanks]