Skip to content

Commit 01583e0

Browse files
committed
fix typo
1 parent 39ffde5 commit 01583e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/spatialdata_io/readers/visium_hd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def visium_hd(
128128
FILTERED_MATRIX_2U_PATH = (
129129
path / VisiumHDKeys.BINNED_OUTPUTS / f"{VisiumHDKeys.BIN_PREFIX}002um" / VisiumHDKeys.FILTERED_COUNTS_FILE
130130
)
131-
cell_segmentation_files_exists = (
131+
cell_segmentation_files_exist = (
132132
COUNT_MATRIX_PATH.exists() and CELL_GEOJSON_PATH.exists() and SCALE_FACTORS_PATH.exists()
133133
)
134-
nucleus_segmentation_files_exists = (
134+
nucleus_segmentation_files_exist = (
135135
NUCLEUS_GEOJSON_PATH.exists()
136136
and (BARCODE_MAPPINGS_PATH is not None and BARCODE_MAPPINGS_PATH.exists())
137137
and FILTERED_MATRIX_2U_PATH.exists()
@@ -326,7 +326,7 @@ def _get_bins(path_bins: Path) -> list[str]:
326326
tables[bin_size_str].var_names_make_unique()
327327

328328
# Integrate the segmentation data (skipped if segmentation files are not found)
329-
if cell_segmentation_files_exists:
329+
if cell_segmentation_files_exist:
330330
print("Found segmentation data. Incorporating cell_segmentations.")
331331
cell_adata_hd = sc.read_10x_h5(COUNT_MATRIX_PATH)
332332
cell_adata_hd.var_names_make_unique()
@@ -351,7 +351,7 @@ def _get_bins(path_bins: Path) -> list[str]:
351351
)
352352

353353
# load nucleus segmentations if available
354-
if nucleus_segmentation_files_exists and load_nucleus_segmentations:
354+
if nucleus_segmentation_files_exist and load_nucleus_segmentations:
355355
print("Found nucleus segmentation data. Incorporating nucleus_segmentations.")
356356

357357
if BARCODE_MAPPINGS_PATH is None:

0 commit comments

Comments
 (0)