Skip to content

Commit ba93998

Browse files
committed
oups
1 parent 9c93832 commit ba93998

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def check_folder_consistency(folder_structure, possible_experiment_names=None):
485485
segment_stream_names = None
486486
if len(experiment['recordings']) > 1:
487487
for recording in experiment['recordings']:
488-
stream_names = sorted(list(recording['streams'].keys()))
488+
stream_names = sorted(list(recording['streams']['continuous'].keys()))
489489
if segment_stream_names is None:
490490
segment_stream_names = stream_names
491491
assert segment_stream_names == stream_names, \
@@ -498,10 +498,12 @@ def check_folder_consistency(folder_structure, possible_experiment_names=None):
498498
if len(experiments) > 1:
499499
for experiment in experiments:
500500
# use 1st segment
501-
stream_names = sorted(list(experiment['recordings'][0]['streams'].keys()))
501+
stream_names = list(experiment['recordings'][0]['streams']['continuous'].keys())
502+
stream_names = sorted(stream_names)
502503
if block_stream_names is None:
503504
block_stream_names = stream_names
504505
assert block_stream_names == stream_names, \
505506
(f"Inconsistent continuous streams across blocks (experiments)! Streams for "
506-
f"different experiments in the same folder must be the same. You can load a subset "
507-
f"of experiments with the 'experiment_names' argument: {possible_experiment_names}")
507+
f"different experiments in the same folder must be the same. You can load a "
508+
f"subset of experiments with the 'experiment_names' argument: "
509+
f"{possible_experiment_names}")

0 commit comments

Comments
 (0)