Skip to content

Commit 6592674

Browse files
committed
update .gitignore; strict True in zip
1 parent 6f35514 commit 6592674

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ data
4141
# data folder
4242
data/
4343
tests/data
44+
uv.lock

src/spatialdata_io/readers/seqfish.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _get_scale_factors(raster_path: Path, raster_models_scale_factors: list[int]
250250

251251
shapes = {}
252252
if cells_as_circles:
253-
for x, adata in zip(rois_str, tables.values(), strict=False):
253+
for x, adata in zip(rois_str, tables.values(), strict=True):
254254
shapes[f"{os.path.splitext(get_cell_file(x))[0]}"] = ShapesModel.parse(
255255
adata.obsm[SK.SPATIAL_KEY],
256256
geometry=0,
@@ -259,7 +259,7 @@ def _get_scale_factors(raster_path: Path, raster_models_scale_factors: list[int]
259259
transformations={x: Identity()},
260260
)
261261
if load_shapes:
262-
for x, adata in zip(rois_str, tables.values(), strict=False):
262+
for x, adata in zip(rois_str, tables.values(), strict=True):
263263
# this assumes that the index matches the instance key of the table. A more robust approach could be
264264
# implemented, as described here https://github.com/scverse/spatialdata-io/issues/249
265265
shapes[f"{os.path.splitext(get_cell_segmentation_shapes_file(x))[0]}"] = ShapesModel.parse(

0 commit comments

Comments
 (0)