Skip to content

Commit bdd7aee

Browse files
bug in registration metrics
1 parent d07ca9d commit bdd7aee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

benchmarks/registration_metrics.py

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def registration_metrics(data_path, tiff_list, ops, nPC=10):
2525
ops['tiff_list'] = tiff_list
2626

2727
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]
2830
metric_results = []
2931
for nplane, result_op in enumerate(result_ops):
3032
offsets = result_op['regDX']

0 commit comments

Comments
 (0)