Skip to content

Commit 06400c4

Browse files
Merge pull request #353 from scverse/fix/warning-default-visium-hd
fix warning visium hd when default value was set
2 parents 23bcb72 + d9e8cb7 commit 06400c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spatialdata_io/readers/visium_hd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def visium_hd(
119119
labels: dict[str, Any] = {}
120120

121121
# Deprecation warning for load_segmentations_only default value
122-
if not load_segmentations_only:
122+
if load_segmentations_only is None:
123123
warnings.warn(
124124
"`load_segmentations_only` default value will change to `True` in future releases. Please set it "
125125
"explicitly to `True` or `False` to avoid this warning.",

0 commit comments

Comments
 (0)