Skip to content

Commit 63df4cd

Browse files
committed
format: black
1 parent a975353 commit 63df4cd

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

element_array_ephys/ephys.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,14 @@ def make(self, key):
10681068
}
10691069

10701070
spike_locations = sorting_analyzer.get_extension("spike_locations")
1071-
extremum_channel_inds = si.template_tools.get_template_extremum_channel(sorting_analyzer, outputs="index")
1071+
extremum_channel_inds = si.template_tools.get_template_extremum_channel(
1072+
sorting_analyzer, outputs="index"
1073+
)
10721074
spikes_df = pd.DataFrame(
1073-
sorting_analyzer.sorting.to_spike_vector(extremum_channel_inds=extremum_channel_inds))
1075+
sorting_analyzer.sorting.to_spike_vector(
1076+
extremum_channel_inds=extremum_channel_inds
1077+
)
1078+
)
10741079

10751080
units = []
10761081
for unit_idx, unit_id in enumerate(si_sorting.unit_ids):

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def make(self, key):
114114
spikeglx_recording.validate_file("ap")
115115
data_dir = spikeglx_meta_filepath.parent
116116

117-
si_extractor = si.extractors.neoextractors.spikeglx.SpikeGLXRecordingExtractor
117+
si_extractor = (
118+
si.extractors.neoextractors.spikeglx.SpikeGLXRecordingExtractor
119+
)
118120
stream_names, stream_ids = si.extractors.get_neo_streams(
119121
"spikeglx", folder_path=data_dir
120122
)
@@ -125,7 +127,9 @@ def make(self, key):
125127
oe_probe = ephys.get_openephys_probe_data(key)
126128
assert len(oe_probe.recording_info["recording_files"]) == 1
127129
data_dir = oe_probe.recording_info["recording_files"][0]
128-
si_extractor = si.extractors.neoextractors.openephys.OpenEphysBinaryRecordingExtractor
130+
si_extractor = (
131+
si.extractors.neoextractors.openephys.OpenEphysBinaryRecordingExtractor
132+
)
129133

130134
stream_names, stream_ids = si.extractors.get_neo_streams(
131135
"openephysbinary", folder_path=data_dir

0 commit comments

Comments
 (0)