INM-6 / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://packages.python.org/neo/
BSD 3-Clause "New" or "Revised" License
3 stars 10 forks source link

BlackRockIO float multiplication is not precise #38

Open muellerbjoern opened 7 years ago

muellerbjoern commented 7 years ago

When analog input signals (channels > 128) are loaded the gain value is a float number by that the integer signal values are multiplied. This multiplication is done in different ways in the old BlackrockIO_v4 and the new BlackRockIO (happening in BaseRawIO, ll. 490 ff.). Both differ from the expected value. The behavior of the old IO can be explained because of the float precision loss whereas I could not reproduce the result of the new IO by trying to multiply manually at different precisions. The differences are at about the seventh significant digit, thus not extreme.