Skip to content

Commit b61bdab

Browse files
authored
Merge pull request #1374 from BptGrm/master
Fix signal inversion in BioCAM IO
2 parents ea655ae + 437c903 commit b61bdab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/biocamrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ def open_biocam_file_header(filename):
148148
if format_100:
149149
if signal_inv == 1:
150150
read_function = readHDF5t_100
151-
elif signal_inv == 1:
151+
elif signal_inv == -1:
152152
read_function = readHDF5t_100_i
153153
else:
154154
raise Exception("Unknown signal inversion")
155155
else:
156156
if signal_inv == 1:
157157
read_function = readHDF5t_101
158-
elif signal_inv == 1:
158+
elif signal_inv == -1:
159159
read_function = readHDF5t_101_i
160160
else:
161161
raise Exception("Unknown signal inversion")

0 commit comments

Comments
 (0)