Skip to content

Commit

Permalink
Merge pull request #209 from melonora/add_rgb_visiumhd
Browse files Browse the repository at this point in the history
create rgb images for visiumhd
  • Loading branch information
LucaMarconato authored Sep 24, 2024
2 parents acde579 + 015b0d7 commit 9b50d0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ and this project adheres to [Semantic Versioning][].

### Fixed

- Passing `rgb=None` to image model parser, leading to 3-4 channel images being interpreted as RGB(A)
- Passing `rgb=None` to image model parser for both visium and visiumhd, leading to 3-4 channel images being
interpreted as RGB(A)

## [0.1.4] - 2024-08-07

Expand Down
2 changes: 1 addition & 1 deletion src/spatialdata_io/readers/visium_hd.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _load_image(
# dask_image doesn't recognize .btf automatically and imageio v3 throws error due to pixel limit -> use imageio v2
data = imread2(path, **imread_kwargs).squeeze().transpose(2, 0, 1)
image = DataArray(data, dims=("c", "y", "x"))
parsed = Image2DModel.parse(image, scale_factors=scale_factors, **image_models_kwargs)
parsed = Image2DModel.parse(image, scale_factors=scale_factors, rgb=None, **image_models_kwargs)
images[dataset_id + suffix] = parsed
else:
warnings.warn(f"File {path} does not exist, skipping it.", UserWarning, stacklevel=2)
Expand Down

0 comments on commit 9b50d0d

Please sign in to comment.