We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 851a267 commit 27bb4a7Copy full SHA for 27bb4a7
pyproject.toml
@@ -30,6 +30,7 @@ dependencies = [
30
"geopandas>=0.14",
31
"multiscale_spatial_image>=1.0.0",
32
"networkx",
33
+ "numba",
34
"numpy",
35
"ome_zarr>=0.8.4",
36
"pandas",
src/spatialdata/datasets.py
@@ -183,7 +183,7 @@ def _image_blobs(
183
masks = []
184
for i in range(n_channels):
185
mask = self._generate_blobs(length=length, seed=i)
186
- mask = (mask - mask.min()) / mask.ptp() # type: ignore[attr-defined]
+ mask = (mask - mask.min()) / np.ptp(mask) # type: ignore[attr-defined]
187
masks.append(mask)
188
189
x = np.stack(masks, axis=0)
0 commit comments