asammdf
asammdf copied to clipboard
How to get conversion information after extracting or stacking?
('python=3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 ' 'bit (AMD64)]') 'os=Windows-10-10.0.19045-SP0' 'numpy=1.23.1' 'asammdf=7.3.14'
Code
MDF version
4.10
Code snippet
mdf = MDF(path_mdf_file)
databases = readConfig(path_ini_file)
mdf_extracted = mdf.extract_bus_logging(
database_files=databases,
version=None,
prefix="",
progress=None,
)
stacked = MDF.stack([mdf,mdf_extracted])
groups = mdf_extracted.groups
conversions = []
for group in groups:
channels = group.channels
for channel in channels:
conversions.append(channel.conversion)
idx_channel+=1
idx_group+=1
Traceback
Description
So I was trying to get the conversions of all channels from the mdf file. This is working with the origin mdf object from first line. Unfortunately though the objects "stacked" and "mdf_extracted" do not contain the information of conversion anymore. The content is None. Is there a way, to retrieve this information somehow, also through functions "stack" and "extract_bus_logging" as well? Thank you.