Skip to content

Commit

Permalink
record_nodes -> record_node_names
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Apr 3, 2023
1 parent 28f53df commit 28697b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions neo/rawio/openephysbinaryrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ def explore_folder(dirname, experiment_names=None):
# nested dictionary: block_index > seg_index > data_type > stream_name
all_streams = {}
nb_segment_per_block = {}
record_nodes = list(folder_structure.keys())
if len(record_nodes) == 0:
record_node_names = list(folder_structure.keys())
if len(record_node_names) == 0:
raise ValueError(
f"{dirname} is not a valid Open Ephys binary folder. No 'structure.oebin' "
f"files were found in sub-folders."
)
recording_node = folder_structure[record_nodes[0]]
recording_node = folder_structure[record_node_names[0]]

# nb_block needs to be consistent across record nodes. Use the first one
nb_block = len(recording_node['experiments'])
Expand Down Expand Up @@ -622,8 +622,8 @@ def check_folder_consistency(folder_structure, possible_experiment_names=None):
("Inconsistent experiments across recording nodes!")

# check that "continuous" streams are the same across multiple segments (recordings)
record_nodes = list(folder_structure.keys())
experiments = folder_structure[record_nodes[0]]['experiments']
record_node_names = list(folder_structure.keys())
experiments = folder_structure[record_node_names[0]]['experiments']
for exp_id, experiment in experiments.items():
segment_stream_names = None
if len(experiment['recordings']) > 1:
Expand Down

0 comments on commit 28697b6

Please sign in to comment.