Skip to content

Commit 357cda9

Browse files
committed
remove zip function
1 parent 290feca commit 357cda9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

element_array_ephys/ephys_no_curation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,9 @@ def make(self, key):
272272
)
273273

274274
# search session dir and determine acquisition software
275-
for ephys_pattern, ephys_acq_type in zip(
276-
["*.ap.meta", "*.oebin"], ["SpikeGLX", "Open Ephys"]
275+
for ephys_pattern, ephys_acq_type in (
276+
("*.ap.meta", "*.oebin"),
277+
("SpikeGLX", "Open Ephys"),
277278
):
278279
ephys_meta_filepaths = list(session_dir.rglob(ephys_pattern))
279280
if ephys_meta_filepaths:

element_array_ephys/ephys_precluster.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ def make(self, key):
169169
)
170170

171171
# search session dir and determine acquisition software
172-
for ephys_pattern, ephys_acq_type in zip(
173-
["*.ap.meta", "*.oebin"], ["SpikeGLX", "Open Ephys"]
172+
for ephys_pattern, ephys_acq_type in (
173+
("*.ap.meta", "*.oebin"),
174+
("SpikeGLX", "Open Ephys"),
174175
):
175176
ephys_meta_filepaths = [fp for fp in session_dir.rglob(ephys_pattern)]
176177
if ephys_meta_filepaths:

0 commit comments

Comments
 (0)