Skip to content

Commit f6be9e9

Browse files
committed
Fix estimate spatial scale output.
1 parent 5839823 commit f6be9e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

suite2p/detection/sparsedetect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def estimate_spatial_scale(I):
452452
ipk = np.abs(I0 - maximum_filter(I0, size=(11, 11))).flatten() < 1e-4
453453
isort = np.argsort(I0.flatten()[ipk])[::-1]
454454
im, _ = mode(imap[ipk][isort[:50]], keepdims=True)
455-
return im
455+
return im.item()
456456

457457

458458
def find_best_scale(I, spatial_scale):

0 commit comments

Comments
 (0)