ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 74 forks source link

Raw values are wrong if bit count is not a multiple of 8 (MDF 3 files) #142

Closed ginseil closed 6 years ago

ginseil commented 6 years ago

If I read the values of a channel whose bit count is not a multiple of 8, then the returened values are wrong.

Example: image

The returned sequence is: [4160.749566, 4160.749566, 4160.749566, ...] The expected sequence is: [134,217726, 134,217726, 134,217726, ...]

ratal commented 6 years ago

You can check in latest dev branch, I modified dataRead.pyx, there was a bug in it. --> you will need to recompile it

ginseil commented 6 years ago

Works like a charm. Thank you! :)