0

How can I extract the conversion factor and offset for the signals of an mdf4 file. I am using asammdf, but I couldn't figure out, from where it gets the information e.g. when I use the mdf.to_dataframe(raw=False) method.

abc
  • 157
  • 1
  • 13

1 Answers1

0

This information cannot be aprt of the dataframe. Instead you should extract just the required channel and look at the conversion attribute

from asammdf import MDF
m = MDF(file)
ch = m.get('MySignal', raw=True)
print(ch.conversion)
danielhrisca
  • 665
  • 1
  • 5
  • 11