diff --git a/src/spatialdata/datasets.py b/src/spatialdata/datasets.py index a70b9b75..b0e103fd 100644 --- a/src/spatialdata/datasets.py +++ b/src/spatialdata/datasets.py @@ -233,7 +233,8 @@ def _points_blobs( self, transformations: Optional[dict[str, Any]] = None, length: int = 512, n_points: int = 200 ) -> DaskDataFrame: rng = default_rng(42) - arr = rng.integers(10, length - 10, size=(n_points, 2)).astype(np.int64) + padding = 1 + arr = rng.integers(padding, length - padding, size=(n_points, 2)).astype(np.int64) # randomly assign some values from v to the points points_assignment0 = rng.integers(0, 10, size=arr.shape[0]).astype(np.int64) genes = rng.choice(["a", "b"], size=arr.shape[0])