From f47bd7c03a7c1d83b66b83094dcda6b86742a09d Mon Sep 17 00:00:00 2001 From: Sam Bray Date: Wed, 8 May 2024 13:02:30 -0700 Subject: [PATCH 1/2] fix error in io splitter if no systime --- src/trodes_to_nwb/convert_ephys.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trodes_to_nwb/convert_ephys.py b/src/trodes_to_nwb/convert_ephys.py index 2ac249c..2a18405 100644 --- a/src/trodes_to_nwb/convert_ephys.py +++ b/src/trodes_to_nwb/convert_ephys.py @@ -146,7 +146,8 @@ def __init__( previous_multiplex_state = None iterator_loc = len(iterator_size) - i - 1 # calculate systime regression on full epoch, parameters stored and inherited by partial iterators - self.neo_io[iterator_loc].get_regressed_systime(0, None) + if self.neo_io[iterator_loc].sysClock_byte: + self.neo_io[iterator_loc].get_regressed_systime(0, None) while j < size: sub_iterators.append( SpikeGadgetsRawIOPartial( From 6207126fa51f4620af19f13abcebfbc82e5e6692 Mon Sep 17 00:00:00 2001 From: Sam Bray Date: Wed, 8 May 2024 13:06:31 -0700 Subject: [PATCH 2/2] fix linting --- src/trodes_to_nwb/convert_ephys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trodes_to_nwb/convert_ephys.py b/src/trodes_to_nwb/convert_ephys.py index 2a18405..e035489 100644 --- a/src/trodes_to_nwb/convert_ephys.py +++ b/src/trodes_to_nwb/convert_ephys.py @@ -147,7 +147,7 @@ def __init__( iterator_loc = len(iterator_size) - i - 1 # calculate systime regression on full epoch, parameters stored and inherited by partial iterators if self.neo_io[iterator_loc].sysClock_byte: - self.neo_io[iterator_loc].get_regressed_systime(0, None) + self.neo_io[iterator_loc].get_regressed_systime(0, None) while j < size: sub_iterators.append( SpikeGadgetsRawIOPartial(