diff --git a/CHANGELOG.md b/CHANGELOG.md index f411935f..1ed4b297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [Unreleased] + +### Bug Fixes +- Fix channel selection from `wavelenght_id` + ## [v0.4.5] ### Bug Fixes diff --git a/src/ngio/images/_image.py b/src/ngio/images/_image.py index ba6aea78..ca3a6a60 100644 --- a/src/ngio/images/_image.py +++ b/src/ngio/images/_image.py @@ -875,7 +875,7 @@ def _parse_str_or_model( ) elif channel_selection.mode == "wavelength_id": return image.get_channel_idx( - channel_label=str(channel_selection.identifier) + wavelength_id=str(channel_selection.identifier) ) elif channel_selection.mode == "index": return int(channel_selection.identifier)