We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07ca9d commit bdd7aeeCopy full SHA for bdd7aee
benchmarks/registration_metrics.py
@@ -25,6 +25,8 @@ def registration_metrics(data_path, tiff_list, ops, nPC=10):
25
ops['tiff_list'] = tiff_list
26
27
result_ops = suite2p.run_s2p(ops)
28
+ if not isinstance(result_ops, list) or not isinstance(result_ops, np.ndarray):
29
+ result_ops = [result_ops]
30
metric_results = []
31
for nplane, result_op in enumerate(result_ops):
32
offsets = result_op['regDX']
0 commit comments