Skip to content

Commit e911fa7

Browse files
committed
better variable naming
1 parent 42bc7f4 commit e911fa7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ def _source_name(self):
133133

134134
def _parse_header(self):
135135
# Use the static private methods directly
136-
folder_structure, possible_experiments = OpenEphysBinaryRawIO._parse_open_ephys_folder_structure(self.dirname, self.experiment_names)
137-
138-
check_folder_consistency(folder_structure, possible_experiments)
139-
self.folder_structure = folder_structure
140-
136+
folder_structure_dict, possible_experiments = OpenEphysBinaryRawIO._parse_folder_structure(self.dirname, self.experiment_names)
137+
138+
check_folder_consistency(folder_structure_dict, possible_experiments)
139+
self.folder_structure = folder_structure_dict
140+
141141
# Map folder structure to Neo indexing
142-
all_streams, nb_block, nb_segment_per_block = OpenEphysBinaryRawIO._map_open_ephys_structure_to_neo_structure(folder_structure)
142+
all_streams, nb_block, nb_segment_per_block = OpenEphysBinaryRawIO._map_folder_structure_to_neo(folder_structure_dict)
143143

144144
# all streams are consistent across blocks and segments.
145145
# also checks that 'continuous' and 'events' folder are present
@@ -687,7 +687,7 @@ def _get_analogsignal_buffer_description(self, block_index, seg_index, buffer_id
687687
return self._buffer_descriptions[block_index][seg_index][buffer_id]
688688

689689
@staticmethod
690-
def _parse_open_ephys_folder_structure(dirname, experiment_names=None):
690+
def _parse_folder_structure(dirname, experiment_names=None):
691691
"""
692692
Parse the OpenEphys folder structure by scanning for recordings.
693693
@@ -843,17 +843,17 @@ def _parse_open_ephys_folder_structure(dirname, experiment_names=None):
843843
return folder_structure, possible_experiment_names
844844

845845
@staticmethod
846-
def _map_open_ephys_structure_to_neo_structure(open_ephys_folder_structure_dict):
846+
def _map_folder_structure_to_neo(open_ephys_folder_structure_dict):
847847
"""
848-
Map discovered OpenEphys folder structure to Neo indexing system.
848+
Map folder structure to Neo indexing system.
849849
850850
Converts the hierarchical folder structure to a flattened dictionary
851851
organized by Neo's block_index (experiments) and seg_index (recordings).
852852
853853
Parameters
854854
----------
855855
open_ephys_folder_structure_dict : dict
856-
Hierarchical folder structure from _parse_open_ephys_folder_structure()
856+
Hierarchical folder structure from _parse_folder_structure()
857857
858858
Returns
859859
-------
@@ -943,8 +943,8 @@ def explore_folder(dirname, experiment_names=None):
943943
List of all available experiments in the Open Ephys folder
944944
"""
945945
# Use the static private methods for the implementation
946-
folder_structure, possible_experiment_names = OpenEphysBinaryRawIO._parse_open_ephys_folder_structure(dirname, experiment_names)
947-
all_streams, nb_block, nb_segment_per_block = OpenEphysBinaryRawIO._map_open_ephys_structure_to_neo_structure(folder_structure)
946+
folder_structure, possible_experiment_names = OpenEphysBinaryRawIO._parse_folder_structure(dirname, experiment_names)
947+
all_streams, nb_block, nb_segment_per_block = OpenEphysBinaryRawIO._map_folder_structure_to_neo(folder_structure)
948948

949949
return folder_structure, all_streams, nb_block, nb_segment_per_block, possible_experiment_names
950950

0 commit comments

Comments
 (0)