Skip to content

Commit 5f6fa35

Browse files
committed
oups
1 parent 0c85fb7 commit 5f6fa35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

neo/rawio/openephysrawio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _parse_header(self):
142142
'clipping to make them aligned.')
143143

144144
first = max(all_first_timestamps)
145-
last = max(all_last_timestamps)
145+
last = min(all_last_timestamps)
146146
for chan_index in self._sigs_memmap[seg_index]:
147147
data_chan = self._sigs_memmap[seg_index][chan_index]
148148
keep = (data_chan['timestamp'] >= first) & (data_chan['timestamp'] < last)
@@ -514,7 +514,6 @@ def explore_folder(dirname):
514514
"100_CH0_2.continuous" ---> seg_index 1
515515
"100_CH0_N.continuous" ---> seg_index N-1
516516
"""
517-
print(dirname, type(dirname))
518517
filenames = os.listdir(dirname)
519518
filenames.sort()
520519

0 commit comments

Comments
 (0)