From 437c9038203b7d848ade4d4f5523d9d109084acf Mon Sep 17 00:00:00 2001 From: BptGrm <83828302+BptGrm@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:43:34 +0100 Subject: [PATCH] Fix signal inversion --- neo/rawio/biocamrawio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/rawio/biocamrawio.py b/neo/rawio/biocamrawio.py index 5d1768c3b..823aa92e2 100644 --- a/neo/rawio/biocamrawio.py +++ b/neo/rawio/biocamrawio.py @@ -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")