We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcb1f18 commit f889c48Copy full SHA for f889c48
ibllib/pipes/mesoscope_tasks.py
@@ -509,8 +509,7 @@ def _consolidate_exptQC(exptQC):
509
# May be numpy array of str or a single str, in both cases we cast to list of str
510
names = list(ensure_list(e['frameQC_names']))
511
# 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
+ for i_old, name in enumerate(names):
514
name = name if len(name) else 'unknown' # handle empty array and empty str
515
try:
516
i_new = qc_labels.index(name)
0 commit comments