Skip to content

Commit 90c93d5

Browse files
committed
fix oe indexing for events files
1 parent 2aea64d commit 90c93d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/openephysrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def _parse_header(self):
297297
if oe_index == 0:
298298
event_filename = Path(self.dirname) / (event_file_name_0 + ".events")
299299
else:
300-
event_filename = Path(self.dirname) / (event_file_name_0 + f"_{oe_index}.events")
300+
event_filename = Path(self.dirname) / (event_file_name_0 + f"_{oe_index + 1}.events")
301301

302302
event_info = read_file_header(event_filename)
303303
# event files can exist, but just not have data

0 commit comments

Comments
 (0)