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

Channel Conversion Metadata Loses Precision #1073

Closed markwaterbury closed 2 months ago

markwaterbury commented 2 months ago

https://github.com/danielhrisca/asammdf/blob/c9d0e449000ed70f2ea1dd47df7c80f3e74471c5/src/asammdf/blocks/v4_blocks.py#L4061

When displaying the metadata() for a channel conversion block, rounding may cause no value to be displayed. If the conversion type is linear, for instance, the a factor can often be a small number like 1e-12, but when rounded, will just show 0.0.

danielhrisca commented 2 months ago

thanks, please check the development branch code

markwaterbury commented 2 months ago

Excellent, that fixes it. Thanks!