Skip to content

Commit 0d6dc09

Browse files
committed
unpack the unpack
1 parent 698b077 commit 0d6dc09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/micromedrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ def _parse_header(self):
148148

149149
# this skips the filtering info done with the machine
150150
f.seek(8, 1)
151-
151+
152152
#(sampling_rate,) = f.read_f("H")
153153
# sampling_rate is actually the rate_coefficient which is multipled by the
154154
# Rate_Min which is the sampling_rate
155-
sampling_rate = struct.unpack("H", f.read(struct.calcsize("H")))
155+
sampling_rate = struct.unpack("H", f.read(struct.calcsize("H")))[0]
156156
sampling_rate *= Rate_Min
157157
chan_id = str(c)
158158
signal_channels.append(

0 commit comments

Comments
 (0)