We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 129da57 commit 698b077Copy full SHA for 698b077
neo/rawio/micromedrawio.py
@@ -146,8 +146,13 @@ def _parse_header(self):
146
gain = factor
147
offset = -logical_ground * factor
148
149
- f.seek(8, 1)
150
- (sampling_rate,) = f.read_f("H")
+ # this skips the filtering info done with the machine
+ f.seek(8, 1)
151
+
152
+ #(sampling_rate,) = f.read_f("H")
153
+ # sampling_rate is actually the rate_coefficient which is multipled by the
154
+ # Rate_Min which is the sampling_rate
155
+ sampling_rate = struct.unpack("H", f.read(struct.calcsize("H")))
156
sampling_rate *= Rate_Min
157
chan_id = str(c)
158
signal_channels.append(
0 commit comments