Skip to content

Commit f6399c8

Browse files
authored
Merge pull request #94 from LorenFrankLab/no_sysclock_bug
Fix error in io splitter if no systime
2 parents f211392 + 6207126 commit f6399c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trodes_to_nwb/convert_ephys.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def __init__(
146146
previous_multiplex_state = None
147147
iterator_loc = len(iterator_size) - i - 1
148148
# calculate systime regression on full epoch, parameters stored and inherited by partial iterators
149-
self.neo_io[iterator_loc].get_regressed_systime(0, None)
149+
if self.neo_io[iterator_loc].sysClock_byte:
150+
self.neo_io[iterator_loc].get_regressed_systime(0, None)
150151
while j < size:
151152
sub_iterators.append(
152153
SpikeGadgetsRawIOPartial(

0 commit comments

Comments
 (0)