Skip to content

Commit f889c48

Browse files
committed
Minor fix to MesoscopePreprocess._consolidate_exptQC for recent numpy version
1 parent dcb1f18 commit f889c48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ibllib/pipes/mesoscope_tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,7 @@ def _consolidate_exptQC(exptQC):
509509
# May be numpy array of str or a single str, in both cases we cast to list of str
510510
names = list(ensure_list(e['frameQC_names']))
511511
# For each label for the old enum, populate initialized array with the new one
512-
for name in names:
513-
i_old = names.index(name) # old enumeration
512+
for i_old, name in enumerate(names):
514513
name = name if len(name) else 'unknown' # handle empty array and empty str
515514
try:
516515
i_new = qc_labels.index(name)

0 commit comments

Comments
 (0)