Tags: 4DNucleome/PartSeg
Tags
feat: Use image color when add layer to napari (#1200) Use color associated with the channel in napari reader plugin. <!-- Generated by sourcery-ai[bot]: start summary --> ## Summary by Sourcery Add functionality to use channel-associated colors in napari layers by adjusting hex color codes. Enhance the `_hex_to_rgb` function to support additional hex code formats and update tests accordingly. New Features: - Integrate color adjustment for image layers in the napari reader plugin, using the color associated with the channel. Enhancements: - Improve the `_hex_to_rgb` function to handle 4 and 8 character hex codes, ensuring proper conversion and validation. Tests: - Expand tests for the `_hex_to_rgb` function to include cases for 4 and 8 character hex codes, ensuring correct functionality and error handling. <!-- Generated by sourcery-ai[bot]: end summary --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced `adjust_color` function to modify color strings based on length, enhancing color handling. - Updated `_hex_to_rgb` function to support additional hexadecimal color formats. - **Bug Fixes** - Improved validation for hex color codes, ensuring robust error handling for various input lengths. - **Tests** - Added new test cases for `_hex_to_rgb` to validate behavior with hex codes including alpha channels. - Enhanced tests for layer creation and colormap validation in image processing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
feat: Add metadata viewer as napari widget (#1195) <!-- Generated by sourcery-ai[bot]: start summary --> ## Summary by Sourcery Add a new LayerMetadata widget to the napari viewer for displaying layer metadata, update the DictViewer class to use a set_data method, and include tests for the new widget. New Features: - Introduce a new LayerMetadata widget for viewing metadata of layers in the napari viewer. Enhancements: - Modify the DictViewer class to use a set_data method for initializing data. Tests: - Add tests for the LayerMetadata widget to verify its initialization and functionality with and without layers. <!-- Generated by sourcery-ai[bot]: end summary --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced the "View Layer Metadata" feature in the Napari interface, allowing users to view metadata associated with image layers. - Added a new `LayerMetadata` widget for selecting layers and displaying their metadata. - **Bug Fixes** - Enhanced metadata handling for image layers, ensuring relevant information is included in layer configurations. - **Tests** - Added a new test class for the `LayerMetadata` widget to ensure proper functionality during initialization and layer updates. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
fix: Fix reading channel names from single channel czi files (#1194) <!-- Generated by sourcery-ai[bot]: start summary --> ## Summary by Sourcery Fix the issue with reading channel names from single channel CZI files by ensuring the channel metadata is correctly processed when it is a dictionary. Bug Fixes: - Fix reading channel names from single channel CZI files by handling the case where channel metadata is a dictionary instead of a list. <!-- Generated by sourcery-ai[bot]: end summary --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved handling of channel metadata when reading image files, ensuring consistent population of channel names for both single and multiple channels. - **Bug Fixes** - Resolved issues related to channel metadata processing that could occur with single-channel images. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
docs: Update changelog (#1176) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Resolved an issue with the checking of survey files, enhancing file handling reliability. - Improved the plugin discovery mechanism for better integration and usability within the napari viewer. - **Documentation** - Updated documentation to include a changelog for better tracking of changes and updates. - Reflective updates for automatic constraint upgrades for various dependencies, ensuring compatibility and leveraging improvements. - **Chores** - Updated tests related to napari to align with recent changes. - Transitioned to Python 3.11 for improved compatibility and performance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
chore: Disable thumbnail generation in napari layer as it is fragile … …and not used (#1171) This PR uses a private API, but should not be fragile as change name of function will only enable again thumbnail generation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced control over thumbnail management in the image processing workflow by disabling automatic updates for thumbnails in specific image layers. - **Bug Fixes** - Resolved issues related to unintended thumbnail updates, improving the overall user experience when working with images. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PreviousNext