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 cfbad45 commit aec4384Copy full SHA for aec4384
suite2p/detection/stats.py
@@ -7,6 +7,7 @@
7
from dataclasses import dataclass, field
8
from warnings import warn
9
10
+import sys
11
import numpy as np
12
from numpy.linalg import norm
13
from scipy.spatial import ConvexHull
@@ -58,7 +59,10 @@ class ROI:
58
59
lam: np.ndarray
60
med: np.ndarray
61
do_crop: bool
- rsort: np.ndarray = field(default_factory=default_rsort, repr=False)
62
+ if sys.version_info >= (3, 12):
63
+ rsort: np.ndarray = field(default_factory=default_rsort, repr=False)
64
+ else:
65
+ rsort: np.ndarray = field(default=np.sort(distance_kernel(radius=30).flatten()), repr=False)
66
67
def __post_init__(self):
68
"""Validate inputs."""
0 commit comments