Skip to content

Commit

Permalink
Merge pull request #1374 from BptGrm/master
Browse files Browse the repository at this point in the history
Fix signal inversion in BioCAM IO
  • Loading branch information
apdavison authored Jan 26, 2024
2 parents ea655ae + 437c903 commit b61bdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo/rawio/biocamrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ def open_biocam_file_header(filename):
if format_100:
if signal_inv == 1:
read_function = readHDF5t_100
elif signal_inv == 1:
elif signal_inv == -1:
read_function = readHDF5t_100_i
else:
raise Exception("Unknown signal inversion")
else:
if signal_inv == 1:
read_function = readHDF5t_101
elif signal_inv == 1:
elif signal_inv == -1:
read_function = readHDF5t_101_i
else:
raise Exception("Unknown signal inversion")
Expand Down

0 comments on commit b61bdab

Please sign in to comment.