Conversation
…ns and improve marker handling logic in case of small datasets. Add fallback for loading default spatial image if no channel name is provided.
…and improve spatial image checks
…ts in request parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements to spatial image handling and UI flexibility in the spatial panel viewer. The main changes add support for multiple image channels, enable dynamic switching between them in the UI, refactor image opacity handling, and streamline color mapping logic. Additionally, there are minor dependency updates and bug fixes.
Spatial image channel support and UI enhancements:
list_image_channelsto enumerate available image channels for a dataset, and integrated it into the viewer initialization (services/spatial/common.py,services/spatial/panel_common.py). [1] [2]channel_select) that appears when multiple channels are available, with a callback to update displayed images when the selection changes (services/spatial/panel_common.py). [1] [2] [3] [4] [5]_build_dimmed_array, and ensured the correct image channel and opacity are used throughout the viewer (services/spatial/panel_common.py). [1] [2]Backend and color mapping improvements:
found_imgflag instead of passing image arrays, simplifying checks for image presence and improving maintainability (www/api/resources/spatialpanel.py). [1] [2] [3] [4]www/api/resources/spatialpanel.py). [1] [2]Dependency and minor code updates:
panellibrary dependency from version 1.8.10 to 1.9.3 indocker/requirements.txt.services/spatial/common.py).services/spatial/panel_common.py,www/api/resources/available_display_types.py). [1] [2] [3]These changes collectively make the spatial panel viewer more flexible and robust, especially for datasets with multiple image channels, and improve the clarity and maintainability of the codebase.