Skip to content

Bugfix: Allow overriding scale_factor in visium hd#383

Open
Tobiaspk wants to merge 2 commits intoscverse:mainfrom
dpeerlab:main
Open

Bugfix: Allow overriding scale_factor in visium hd#383
Tobiaspk wants to merge 2 commits intoscverse:mainfrom
dpeerlab:main

Conversation

@Tobiaspk
Copy link

@Tobiaspk Tobiaspk commented Mar 5, 2026

Closes #382

Minimal, non-break change to allow users to override scale_factors in visium HD reader. Crashes currently.

@Tobiaspk
Copy link
Author

Tobiaspk commented Mar 5, 2026

Changed typing Mapping to MutableMapping, which supports the pop method. this issue was highlighted by mypy pre-commit.

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.69%. Comparing base (433014e) to head (2696766).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #383      +/-   ##
==========================================
+ Coverage   61.65%   61.69%   +0.03%     
==========================================
  Files          27       27              
  Lines        3161     3164       +3     
==========================================
+ Hits         1949     1952       +3     
  Misses       1212     1212              
Files with missing lines Coverage Δ
src/spatialdata_io/readers/visium_hd.py 75.41% <100.00%> (+0.24%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Visium HD reader has hardcoded scale factors for full-res images

2 participants