PartSeg 0.15.4b5__tar.gz → 0.15.4b7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {partseg-0.15.4b5 → partseg-0.15.4b7}/PKG-INFO +8 -8
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_launcher/check_version.py +2 -4
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/except_hook.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/advanced_tabs.py +5 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/dict_viewer.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/error_report.py +2 -2
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/napari_image_view.py +16 -8
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/napari.yaml +5 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/__init__.py +2 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/lables_control.py +5 -2
- partseg-0.15.4b7/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +29 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +3 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/utils.py +3 -3
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/version.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg.egg-info/PKG-INFO +8 -8
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg.egg-info/SOURCES.txt +1 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg.egg-info/requires.txt +3 -3
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/batch_processing/batch_backend.py +6 -3
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/measurement_calculation.py +2 -2
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/image_projection.py +2 -2
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/mask/io_functions.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/loader.py +46 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/save_tiff_layer.py +5 -5
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegImage/__init__.py +3 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegImage/image.py +259 -68
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegImage/image_reader.py +34 -23
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/conftest.py +17 -4
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_base_widgets.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_check_release.py +11 -6
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_common_backend.py +11 -9
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_common_gui.py +4 -4
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_napari_image_view.py +6 -2
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_napari_widgets.py +40 -2
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_sentry.py +14 -19
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_settings.py +12 -8
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_viewer.py +3 -3
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_analysis_batch.py +2 -2
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_image_adjustment.py +5 -5
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_io.py +5 -5
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_mask_create.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_measurements.py +16 -16
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_napari_plugins.py +30 -9
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_segmentation.py +7 -7
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegImage/test_image.py +205 -75
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegImage/test_image_reader.py +2 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegImage/test_image_writer.py +34 -7
- {partseg-0.15.4b5 → partseg-0.15.4b7}/pyproject.toml +21 -3
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.10.txt +19 -21
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.10_pydantic_1.txt +16 -16
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.11.txt +19 -21
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.11_docs.txt +19 -21
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.11_pydantic_1.txt +16 -16
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.12.txt +17 -19
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.12_pydantic_1.txt +14 -14
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.8.txt +15 -15
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.8_pydantic_1.txt +13 -13
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.9.txt +17 -19
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/constraints_py3.9_pydantic_1.txt +14 -14
- {partseg-0.15.4b5 → partseg-0.15.4b7}/.napari/DESCRIPTION.md +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/.napari/config.yml +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/CITATION.cff +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/License.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/MANIFEST.in +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/Readme.md +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/changelog.md +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/__main__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_launcher/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_launcher/check_survey.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_launcher/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/_roi_mask/stack_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/changelog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/abstract_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/base_argparser.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/base_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/load_backup.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/progress_thread.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/about_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/algorithms_description.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/channel_control.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/colormap_creator.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/custom_buttons.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/custom_save_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/exception_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/flow_layout.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/icon_selector.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/image_adjustment.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/label_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/mask_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/qt_console.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/qt_modal.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/qt_util.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/select_multiple_files.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/stack_image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/launcher_main.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/itk_snap_save/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/modeling_save/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/old_partseg/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/state_store.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg.egg-info/dependency_links.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg.egg-info/entry_points.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg.egg-info/top_level.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/_old_json_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/algorithm_describe_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/algorithm_description.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/analysis_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/calculation_plan.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/io_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/load_functions.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/measurement_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/save_functions.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/autofit.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/channel_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/class_generator.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/color_image/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/color_image/base_colors.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/color_image/color_data.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/convex_fill.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/custom_name_generate.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_operations.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/transform_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/io_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/json_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/mask/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/mask/algorithm_description.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/mask/history_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/mask_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/mask_partition_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/load_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/load_mask_project.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/load_masked_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/load_roi_project.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/napari_plugins/save_mask_roi.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/plugins/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/project_info.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/register.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/roi_info.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/threshold.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/segmentation/watershed.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/sphinx/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/universal_const.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegImage/channel_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegImage/image_writer.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegImage/tifffile_fixes.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/conftest.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_analysis.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_channel_control.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_check_survey.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_io.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_label_choose.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_launcher.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_main_windows.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_roi_analysis_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSeg/test_window_import.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_class_generator.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_class_register.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_json_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_min_req.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_mso.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_smooth.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegCore/test_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegImage/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/measurements_profile.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/napari_measurements_profile.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/notebook/segment_data.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/ome.xsd.xml +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/problematic_json_batch.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/problematic_profile_dict.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/range_profile.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/sample_batch_output.xlsx +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/package/tests/test_data/workflow.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/dependabot_runtime.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/pre_test_problematic_version.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/requirements_ci.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/requirements_dev.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/requirements_test.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/requirements/version_denylist.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/setup.cfg +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PartSeg
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.4b7
|
|
4
4
|
Summary: PartSeg is python GUI and set of napari plugins for bio imaging analysis especially nucleus analysis,
|
|
5
5
|
Author-email: Grzegorz Bokota <g.bokota@uw.edu.pl>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -57,12 +57,12 @@ Requires-Dist: openpyxl>=2.5.7
|
|
|
57
57
|
Requires-Dist: packaging>=20.0
|
|
58
58
|
Requires-Dist: pandas>=1.1.0
|
|
59
59
|
Requires-Dist: psygnal>=0.3.1
|
|
60
|
-
Requires-Dist: pydantic
|
|
60
|
+
Requires-Dist: pydantic<3,>=1.9.1
|
|
61
61
|
Requires-Dist: pygments>=2.12.0
|
|
62
62
|
Requires-Dist: qtconsole>=4.7.7
|
|
63
|
-
Requires-Dist: requests>=2.
|
|
63
|
+
Requires-Dist: requests>=2.25.0
|
|
64
64
|
Requires-Dist: scipy>=1.4.1
|
|
65
|
-
Requires-Dist: sentry-sdk>=
|
|
65
|
+
Requires-Dist: sentry-sdk>=2.4.0
|
|
66
66
|
Requires-Dist: six>=1.11.0
|
|
67
67
|
Requires-Dist: superqt>=0.3.0
|
|
68
68
|
Requires-Dist: sympy>=1.1.1
|
|
@@ -149,10 +149,10 @@ This application is designed to help biologist with segmentation based on thresh
|
|
|
149
149
|
|
|
150
150
|
- From binaries:
|
|
151
151
|
|
|
152
|
-
- [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
153
|
-
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
154
|
-
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
155
|
-
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
152
|
+
- [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-windows.zip) (build on Windows 10)
|
|
153
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-linux.zip) (build on Ubuntu 20.04)
|
|
154
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-macos.zip) (build on macOS 13)
|
|
155
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-macos-arm64.zip) (build on macOS 14)
|
|
156
156
|
There are reported problems with permissions systems on macOS. If you have a problem with starting the application, please try to run it from the terminal.
|
|
157
157
|
|
|
158
158
|
- With pip:
|
|
@@ -24,9 +24,7 @@ class CheckVersionThread(QThread):
|
|
|
24
24
|
.. _PYPI: https://pypi.org/project/PartSeg/
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
-
def __init__(
|
|
28
|
-
self, package_name="PartSeg", default_url="https://4dnucleome.cent.uw.edu.pl/PartSeg/", base_version=__version__
|
|
29
|
-
):
|
|
27
|
+
def __init__(self, package_name="PartSeg", default_url="https://partseg.github.io/", base_version=__version__):
|
|
30
28
|
super().__init__()
|
|
31
29
|
self.release = base_version
|
|
32
30
|
self.base_release = base_version
|
|
@@ -57,7 +55,7 @@ class CheckVersionThread(QThread):
|
|
|
57
55
|
except (KeyError, urllib.error.URLError): # pragma: no cover
|
|
58
56
|
pass
|
|
59
57
|
except Exception as e: # pylint: disable=broad-except
|
|
60
|
-
with sentry_sdk.
|
|
58
|
+
with sentry_sdk.new_scope() as scope:
|
|
61
59
|
scope.set_tag("auto_report", "true")
|
|
62
60
|
scope.set_tag("check_version", "true")
|
|
63
61
|
sentry_sdk.capture_exception(e)
|
|
@@ -24,7 +24,7 @@ def my_excepthook(type_, value, trace_back):
|
|
|
24
24
|
# log the exception here
|
|
25
25
|
if state_store.show_error_dialog and not isinstance(value, KeyboardInterrupt):
|
|
26
26
|
if state_store.auto_report or state_store.always_report:
|
|
27
|
-
with sentry_sdk.
|
|
27
|
+
with sentry_sdk.new_scope() as scope:
|
|
28
28
|
scope.set_tag("auto_report", "true")
|
|
29
29
|
scope.set_tag("main_thread", QCoreApplication.instance().thread() == QThread.currentThread())
|
|
30
30
|
sentry_sdk.capture_exception(value)
|
|
@@ -275,4 +275,8 @@ class ImageMetadata(QWidget):
|
|
|
275
275
|
|
|
276
276
|
def update_metadata(self):
|
|
277
277
|
self._dict_viewer.set_data(self.settings.image.metadata)
|
|
278
|
-
|
|
278
|
+
text = ", ".join(
|
|
279
|
+
f"{name}: {color}"
|
|
280
|
+
for name, color in zip(self.settings.image.channel_names, self.settings.image.get_colors())
|
|
281
|
+
)
|
|
282
|
+
self.channel_info.setText(f"Channels with colors: {text}")
|
|
@@ -201,7 +201,7 @@ class ErrorDialog(QDialog):
|
|
|
201
201
|
"""
|
|
202
202
|
Function with construct final error message and send it using sentry.
|
|
203
203
|
"""
|
|
204
|
-
with sentry_sdk.
|
|
204
|
+
with sentry_sdk.new_scope() as scope:
|
|
205
205
|
text = f"{self.desc.text()}\n\nVersion: {__version__}\n"
|
|
206
206
|
if len(self.additional_notes) > 0:
|
|
207
207
|
scope.set_extra("additional_notes", self.additional_notes)
|
|
@@ -217,7 +217,7 @@ class ErrorDialog(QDialog):
|
|
|
217
217
|
|
|
218
218
|
event_id = sentry_sdk.capture_event(event, hint=hint)
|
|
219
219
|
if event_id is None:
|
|
220
|
-
event_id = sentry_sdk.
|
|
220
|
+
event_id = sentry_sdk.scope.Scope.last_event_id()
|
|
221
221
|
|
|
222
222
|
if len(self.additional_info.toPlainText()) > 0:
|
|
223
223
|
contact_text = self.contact_info.text()
|
|
@@ -43,6 +43,7 @@ except ImportError:
|
|
|
43
43
|
from napari._qt.widgets.qt_viewer_buttons import QtViewerPushButton as QtViewerPushButton_
|
|
44
44
|
_napari_ge_4_13 = parse_version(napari.__version__) >= parse_version("0.4.13a1")
|
|
45
45
|
_napari_ge_4_17 = parse_version(napari.__version__) >= parse_version("0.4.17a1")
|
|
46
|
+
_napari_ge_4_19 = parse_version(napari.__version__) >= parse_version("0.4.19")
|
|
46
47
|
_napari_ge_5 = parse_version(napari.__version__) >= parse_version("0.5.0a1")
|
|
47
48
|
|
|
48
49
|
# if run with numpy<2 on macOS arm64 architecture compiled from pypi wheels
|
|
@@ -112,7 +113,7 @@ else:
|
|
|
112
113
|
ORDER_DICT = {"xy": [0, 1, 2, 3], "zy": [0, 2, 1, 3], "zx": [0, 3, 1, 2]}
|
|
113
114
|
NEXT_ORDER = {"xy": "zy", "zy": "zx", "zx": "xy"}
|
|
114
115
|
|
|
115
|
-
ColorInfo = Dict[int, Union[str, List[float]]]
|
|
116
|
+
ColorInfo = Dict[Optional[int], Union[str, List[float]]]
|
|
116
117
|
|
|
117
118
|
|
|
118
119
|
@dataclass
|
|
@@ -480,15 +481,18 @@ class ImageView(QWidget):
|
|
|
480
481
|
or image_info.roi_count == 0
|
|
481
482
|
or colors.size == 0
|
|
482
483
|
):
|
|
483
|
-
return {
|
|
484
|
+
return {0: [0, 0, 0, 0], None: [0, 0, 0, 0]}
|
|
484
485
|
|
|
485
486
|
res = {x: colors[(x - 1) % colors.shape[0]] for x in range(1, image_info.roi_count + 1)}
|
|
486
487
|
res[0] = [0, 0, 0, 0]
|
|
488
|
+
res[None] = [0, 0, 0, 0]
|
|
487
489
|
return res
|
|
488
490
|
|
|
489
491
|
def set_roi_colormap(self, image_info) -> None:
|
|
490
|
-
if
|
|
491
|
-
|
|
492
|
+
if _napari_ge_4_19:
|
|
493
|
+
from napari.utils.colormaps import DirectLabelColormap
|
|
494
|
+
|
|
495
|
+
image_info.roi.colormap = DirectLabelColormap(color_dict=self.get_roi_view_parameters(image_info))
|
|
492
496
|
return
|
|
493
497
|
if _napari_ge_4_13:
|
|
494
498
|
image_info.roi.color = self.get_roi_view_parameters(image_info)
|
|
@@ -591,8 +595,10 @@ class ImageView(QWidget):
|
|
|
591
595
|
else:
|
|
592
596
|
image_info.mask.data = mask_marker
|
|
593
597
|
image_info.mask.metadata["valid"] = True
|
|
594
|
-
if
|
|
595
|
-
|
|
598
|
+
if _napari_ge_4_19:
|
|
599
|
+
from napari.utils.colormaps import DirectLabelColormap
|
|
600
|
+
|
|
601
|
+
image_info.mask.colormap = DirectLabelColormap(color_dict=self.mask_color())
|
|
596
602
|
else:
|
|
597
603
|
image_info.mask.color = self.mask_color()
|
|
598
604
|
image_info.mask.opacity = self.mask_opacity()
|
|
@@ -613,8 +619,10 @@ class ImageView(QWidget):
|
|
|
613
619
|
for image_info in self.image_info.values():
|
|
614
620
|
if image_info.mask is not None:
|
|
615
621
|
image_info.mask.opacity = opacity
|
|
616
|
-
if
|
|
617
|
-
|
|
622
|
+
if _napari_ge_4_19:
|
|
623
|
+
from napari.utils.colormaps import DirectLabelColormap
|
|
624
|
+
|
|
625
|
+
image_info.mask.colormap = DirectLabelColormap(color_dict=colormap)
|
|
618
626
|
else:
|
|
619
627
|
image_info.mask.color = colormap
|
|
620
628
|
|
|
@@ -74,6 +74,9 @@ contributions:
|
|
|
74
74
|
- id: PartSeg.CopyLabels
|
|
75
75
|
title: Create Copy Labels
|
|
76
76
|
python_name: PartSeg.plugins.napari_widgets:CopyLabelsWidget
|
|
77
|
+
- id: PartSeg.Metadata
|
|
78
|
+
title: View Layer Metadata
|
|
79
|
+
python_name: PartSeg.plugins.napari_widgets:LayerMetadata
|
|
77
80
|
readers:
|
|
78
81
|
- command: PartSeg.load_roi_project
|
|
79
82
|
filename_patterns:
|
|
@@ -157,3 +160,5 @@ contributions:
|
|
|
157
160
|
display_name: Threshold
|
|
158
161
|
- command: PartSeg.Watershed
|
|
159
162
|
display_name: Watershed
|
|
163
|
+
- command: PartSeg.Metadata
|
|
164
|
+
display_name: Layer Metadata
|
|
@@ -12,6 +12,7 @@ from PartSeg.plugins.napari_widgets.colormap_control import ImageColormap
|
|
|
12
12
|
from PartSeg.plugins.napari_widgets.copy_labels import CopyLabelsWidget
|
|
13
13
|
from PartSeg.plugins.napari_widgets.lables_control import LabelSelector
|
|
14
14
|
from PartSeg.plugins.napari_widgets.mask_create_widget import MaskCreate
|
|
15
|
+
from PartSeg.plugins.napari_widgets.metadata_viewer import LayerMetadata
|
|
15
16
|
from PartSeg.plugins.napari_widgets.roi_extraction_algorithms import ROIAnalysisExtraction, ROIMaskExtraction
|
|
16
17
|
from PartSeg.plugins.napari_widgets.search_label_widget import SearchLabel
|
|
17
18
|
|
|
@@ -27,6 +28,7 @@ __all__ = (
|
|
|
27
28
|
"Watershed",
|
|
28
29
|
"ImageColormap",
|
|
29
30
|
"LabelSelector",
|
|
31
|
+
"LayerMetadata",
|
|
30
32
|
"MaskCreate",
|
|
31
33
|
"ROIAnalysisExtraction",
|
|
32
34
|
"ROIMaskExtraction",
|
{partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/lables_control.py
RENAMED
|
@@ -11,6 +11,7 @@ from PartSeg.common_gui.label_create import LabelChoose, LabelEditor, LabelShow
|
|
|
11
11
|
from PartSeg.plugins.napari_widgets._settings import get_settings
|
|
12
12
|
|
|
13
13
|
NAPARI_GE_5_0 = parse_version(version("napari")) >= parse_version("0.5.0a1")
|
|
14
|
+
NAPARI_GE_4_19 = parse_version(version("napari")) >= parse_version("0.4.19a1")
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
class NapariLabelShow(LabelShow):
|
|
@@ -41,8 +42,10 @@ class NapariLabelShow(LabelShow):
|
|
|
41
42
|
max_val = layer.data.max()
|
|
42
43
|
labels = {i + 1: [x / 255 for x in self.label[i % len(self.label)]] for i in range(max_val + 5)}
|
|
43
44
|
labels[None] = [0, 0, 0, 0]
|
|
44
|
-
if
|
|
45
|
-
|
|
45
|
+
if NAPARI_GE_4_19:
|
|
46
|
+
from napari.utils.colormaps import DirectLabelColormap
|
|
47
|
+
|
|
48
|
+
layer.colormap = DirectLabelColormap(color_dict=labels)
|
|
46
49
|
else:
|
|
47
50
|
layer.color = labels
|
|
48
51
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import napari
|
|
2
|
+
from magicgui.widgets import create_widget
|
|
3
|
+
from napari.layers import Image as NapariImage
|
|
4
|
+
from qtpy.QtWidgets import QVBoxLayout, QWidget
|
|
5
|
+
|
|
6
|
+
from PartSeg.common_gui.dict_viewer import DictViewer
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LayerMetadata(QWidget):
|
|
10
|
+
def __init__(self, viewer: napari.Viewer):
|
|
11
|
+
super().__init__()
|
|
12
|
+
self._viewer = viewer
|
|
13
|
+
self.layer_selector = create_widget(annotation=NapariImage, label="Layer", options={})
|
|
14
|
+
self._dict_viewer = DictViewer()
|
|
15
|
+
layout = QVBoxLayout()
|
|
16
|
+
layout.addWidget(self.layer_selector.native)
|
|
17
|
+
layout.addWidget(self._dict_viewer)
|
|
18
|
+
|
|
19
|
+
self.setLayout(layout)
|
|
20
|
+
self.update_metadata()
|
|
21
|
+
self.layer_selector.changed.connect(self.update_metadata)
|
|
22
|
+
|
|
23
|
+
def reset_choices(self):
|
|
24
|
+
self.layer_selector.reset_choices()
|
|
25
|
+
|
|
26
|
+
def update_metadata(self):
|
|
27
|
+
if self.layer_selector.value is None:
|
|
28
|
+
return
|
|
29
|
+
self._dict_viewer.set_data(self.layer_selector.value.metadata)
|
{partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSeg/plugins/napari_widgets/search_label_widget.py
RENAMED
|
@@ -106,6 +106,7 @@ class SearchLabel(Container):
|
|
|
106
106
|
u_bound = upper_bound[-2:][::-1]
|
|
107
107
|
with warnings.catch_warnings():
|
|
108
108
|
warnings.filterwarnings("ignore", "Public access to Window.qt_viewer")
|
|
109
|
+
warnings.filterwarnings("ignore", "Access to QtViewer.view is deprecated")
|
|
109
110
|
rect = Rect(self.napari_viewer.window.qt_viewer.view.camera.get_state()["rect"])
|
|
110
111
|
if rect.contains(*l_bound) and rect.contains(*u_bound):
|
|
111
112
|
return
|
|
@@ -123,6 +124,7 @@ class SearchLabel(Container):
|
|
|
123
124
|
rect.pos = pos
|
|
124
125
|
with warnings.catch_warnings():
|
|
125
126
|
warnings.filterwarnings("ignore", "Public access to Window.qt_viewer")
|
|
127
|
+
warnings.filterwarnings("ignore", "Access to QtViewer.view is deprecated")
|
|
126
128
|
self.napari_viewer.window.qt_viewer.view.camera.set_state({"rect": rect})
|
|
127
129
|
|
|
128
130
|
@staticmethod
|
|
@@ -146,6 +148,7 @@ class SearchLabel(Container):
|
|
|
146
148
|
rect = Rect(pos=(lower_bound - frame)[-2:][::-1], size=(diff + 2 * frame)[-2:][::-1])
|
|
147
149
|
with warnings.catch_warnings():
|
|
148
150
|
warnings.filterwarnings("ignore", "Public access to Window.qt_viewer")
|
|
151
|
+
warnings.filterwarnings("ignore", "Access to QtViewer.view is deprecated")
|
|
149
152
|
self.napari_viewer.window.qt_viewer.view.camera.set_state({"rect": rect})
|
|
150
153
|
self._update_point(lower_bound, upper_bound)
|
|
151
154
|
|
|
@@ -84,7 +84,7 @@ class SimpleMeasurement(Container):
|
|
|
84
84
|
)
|
|
85
85
|
return
|
|
86
86
|
data_scale = data_layer.scale[-3:] / UNIT_SCALE[self.scale_units_select.get_value().value]
|
|
87
|
-
image = Image(data_layer.data, data_scale, axes_order="TZYX"[-data_ndim:])
|
|
87
|
+
image = Image(data_layer.data, spacing=data_scale, axes_order="TZYX"[-data_ndim:])
|
|
88
88
|
worker = _prepare_data(profile, image, self.labels_choice.value.data)
|
|
89
89
|
worker.returned.connect(self._calculate_next)
|
|
90
90
|
worker.errored.connect(self._finished)
|
|
@@ -12,7 +12,7 @@ from PartSeg.common_gui.algorithms_description import FormWidget, QtAlgorithmPro
|
|
|
12
12
|
from PartSeg.common_gui.custom_save_dialog import FormDialog
|
|
13
13
|
from PartSegCore import UNIT_SCALE, Units
|
|
14
14
|
from PartSegCore.algorithm_describe_base import AlgorithmProperty
|
|
15
|
-
from PartSegImage import Channel, Image
|
|
15
|
+
from PartSegImage import Channel, ChannelInfo, Image
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class QtNapariAlgorithmProperty(QtAlgorithmProperty):
|
|
@@ -69,9 +69,9 @@ def generate_image(viewer: Viewer, *layer_names):
|
|
|
69
69
|
image_list.append(
|
|
70
70
|
Image(
|
|
71
71
|
image_layer.data,
|
|
72
|
-
data_scale,
|
|
72
|
+
spacing=data_scale,
|
|
73
73
|
axes_order=axis_order[-image_layer.data.ndim :],
|
|
74
|
-
|
|
74
|
+
channel_info=[ChannelInfo(name=name.value)],
|
|
75
75
|
)
|
|
76
76
|
)
|
|
77
77
|
res_image = image_list[0]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PartSeg
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.4b7
|
|
4
4
|
Summary: PartSeg is python GUI and set of napari plugins for bio imaging analysis especially nucleus analysis,
|
|
5
5
|
Author-email: Grzegorz Bokota <g.bokota@uw.edu.pl>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -57,12 +57,12 @@ Requires-Dist: openpyxl>=2.5.7
|
|
|
57
57
|
Requires-Dist: packaging>=20.0
|
|
58
58
|
Requires-Dist: pandas>=1.1.0
|
|
59
59
|
Requires-Dist: psygnal>=0.3.1
|
|
60
|
-
Requires-Dist: pydantic
|
|
60
|
+
Requires-Dist: pydantic<3,>=1.9.1
|
|
61
61
|
Requires-Dist: pygments>=2.12.0
|
|
62
62
|
Requires-Dist: qtconsole>=4.7.7
|
|
63
|
-
Requires-Dist: requests>=2.
|
|
63
|
+
Requires-Dist: requests>=2.25.0
|
|
64
64
|
Requires-Dist: scipy>=1.4.1
|
|
65
|
-
Requires-Dist: sentry-sdk>=
|
|
65
|
+
Requires-Dist: sentry-sdk>=2.4.0
|
|
66
66
|
Requires-Dist: six>=1.11.0
|
|
67
67
|
Requires-Dist: superqt>=0.3.0
|
|
68
68
|
Requires-Dist: sympy>=1.1.1
|
|
@@ -149,10 +149,10 @@ This application is designed to help biologist with segmentation based on thresh
|
|
|
149
149
|
|
|
150
150
|
- From binaries:
|
|
151
151
|
|
|
152
|
-
- [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
153
|
-
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
154
|
-
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
155
|
-
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.
|
|
152
|
+
- [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-windows.zip) (build on Windows 10)
|
|
153
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-linux.zip) (build on Ubuntu 20.04)
|
|
154
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-macos.zip) (build on macOS 13)
|
|
155
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b7/PartSeg-0.15.4b7-macos-arm64.zip) (build on macOS 14)
|
|
156
156
|
There are reported problems with permissions systems on macOS. If you have a problem with starting the application, please try to run it from the terminal.
|
|
157
157
|
|
|
158
158
|
- With pip:
|
|
@@ -100,6 +100,7 @@ package/PartSeg/plugins/napari_widgets/copy_labels.py
|
|
|
100
100
|
package/PartSeg/plugins/napari_widgets/lables_control.py
|
|
101
101
|
package/PartSeg/plugins/napari_widgets/mask_create_widget.py
|
|
102
102
|
package/PartSeg/plugins/napari_widgets/measurement_widget.py
|
|
103
|
+
package/PartSeg/plugins/napari_widgets/metadata_viewer.py
|
|
103
104
|
package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py
|
|
104
105
|
package/PartSeg/plugins/napari_widgets/search_label_widget.py
|
|
105
106
|
package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py
|
|
@@ -22,12 +22,12 @@ openpyxl>=2.5.7
|
|
|
22
22
|
packaging>=20.0
|
|
23
23
|
pandas>=1.1.0
|
|
24
24
|
psygnal>=0.3.1
|
|
25
|
-
pydantic
|
|
25
|
+
pydantic<3,>=1.9.1
|
|
26
26
|
pygments>=2.12.0
|
|
27
27
|
qtconsole>=4.7.7
|
|
28
|
-
requests>=2.
|
|
28
|
+
requests>=2.25.0
|
|
29
29
|
scipy>=1.4.1
|
|
30
|
-
sentry-sdk>=
|
|
30
|
+
sentry-sdk>=2.4.0
|
|
31
31
|
six>=1.11.0
|
|
32
32
|
superqt>=0.3.0
|
|
33
33
|
sympy>=1.1.1
|
{partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/batch_processing/batch_backend.py
RENAMED
|
@@ -602,8 +602,11 @@ class SheetData:
|
|
|
602
602
|
"""
|
|
603
603
|
sorted_row = [x[1] for x in sorted(self.row_list)]
|
|
604
604
|
df = pd.DataFrame(sorted_row, columns=self.columns)
|
|
605
|
-
|
|
606
|
-
|
|
605
|
+
if self.data_frame.empty:
|
|
606
|
+
self.data_frame = df.reset_index(drop=True)
|
|
607
|
+
else:
|
|
608
|
+
df2 = pd.concat((self.data_frame, df), axis=0)
|
|
609
|
+
self.data_frame = df2.reset_index(drop=True)
|
|
607
610
|
self.row_list = []
|
|
608
611
|
return self.name, self.data_frame
|
|
609
612
|
|
|
@@ -840,7 +843,7 @@ class FileData:
|
|
|
840
843
|
|
|
841
844
|
if errors:
|
|
842
845
|
errors_data = pd.DataFrame(errors, columns=["File path", "error description"])
|
|
843
|
-
errors_data.to_excel(writer, "Errors")
|
|
846
|
+
errors_data.to_excel(writer, sheet_name="Errors")
|
|
844
847
|
|
|
845
848
|
@staticmethod
|
|
846
849
|
def write_calculation_plan(writer: pd.ExcelWriter, calculation_plan: CalculationPlan):
|
{partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/analysis/measurement_calculation.py
RENAMED
|
@@ -208,7 +208,7 @@ class MeasurementResult(MutableMapping[str, MeasurementResultType]):
|
|
|
208
208
|
res = [name]
|
|
209
209
|
iterator = iter(self._data_dict.keys())
|
|
210
210
|
with suppress(StopIteration):
|
|
211
|
-
next(iterator) # skipcq: PTC-W0063
|
|
211
|
+
next(iterator) # skipcq: PTC-W0063
|
|
212
212
|
else:
|
|
213
213
|
res = []
|
|
214
214
|
iterator = iter(self._data_dict.keys())
|
|
@@ -233,7 +233,7 @@ class MeasurementResult(MutableMapping[str, MeasurementResultType]):
|
|
|
233
233
|
res = [[name] for _ in range(counts)]
|
|
234
234
|
iterator = iter(self._data_dict.keys())
|
|
235
235
|
with suppress(StopIteration):
|
|
236
|
-
next(iterator) # skipcq: PTC-W0063
|
|
236
|
+
next(iterator) # skipcq: PTC-W0063
|
|
237
237
|
else:
|
|
238
238
|
res = [[] for _ in range(counts)]
|
|
239
239
|
iterator = iter(self._data_dict.keys())
|
{partseg-0.15.4b5 → partseg-0.15.4b7}/package/PartSegCore/image_transforming/image_projection.py
RENAMED
|
@@ -58,8 +58,8 @@ class ImageProjection(TransformBase):
|
|
|
58
58
|
return (
|
|
59
59
|
image.__class__(
|
|
60
60
|
data=new_channels,
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
spacing=tuple(spacing),
|
|
62
|
+
channel_info=image.channel_info,
|
|
63
63
|
mask=new_mask,
|
|
64
64
|
axes_order=image.axis_order,
|
|
65
65
|
),
|
|
@@ -132,7 +132,7 @@ def _save_mask_roi(project: MaskProjectTuple, tar_file: tarfile.TarFile, paramet
|
|
|
132
132
|
spacing = project.image.spacing
|
|
133
133
|
else:
|
|
134
134
|
spacing = parameters.spacing
|
|
135
|
-
segmentation_image = Image(project.roi_info.roi, spacing, axes_order=Image.axis_order.replace("C", ""))
|
|
135
|
+
segmentation_image = Image(project.roi_info.roi, spacing=spacing, axes_order=Image.axis_order.replace("C", ""))
|
|
136
136
|
try:
|
|
137
137
|
ImageWriter.save(segmentation_image, segmentation_buff, compression=None)
|
|
138
138
|
except ValueError:
|
|
@@ -1,10 +1,54 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
from importlib.metadata import version
|
|
2
3
|
|
|
3
4
|
import numpy as np
|
|
5
|
+
from packaging.version import parse as parse_version
|
|
4
6
|
|
|
5
7
|
from PartSegCore.analysis import ProjectTuple
|
|
6
8
|
from PartSegCore.io_utils import LoadBase, WrongFileTypeException
|
|
7
9
|
from PartSegCore.mask.io_functions import MaskProjectTuple
|
|
10
|
+
from PartSegImage import Image
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@typing.overload
|
|
14
|
+
def adjust_color(color: str) -> str: ...
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@typing.overload
|
|
18
|
+
def adjust_color(color: typing.List[int]) -> typing.List[float]: ...
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def adjust_color(color: typing.Union[str, typing.List[int]]) -> typing.Union[str, typing.List[float]]:
|
|
22
|
+
# as napari ignore alpha channel in color, and adding it to
|
|
23
|
+
# color cause that napari fails to detect that such colormap is already present
|
|
24
|
+
# in this function I remove alpha channel if it is present
|
|
25
|
+
if isinstance(color, str) and color.startswith("#"):
|
|
26
|
+
if len(color) == 9:
|
|
27
|
+
# case when color is in format #RRGGBBAA
|
|
28
|
+
return color[:7]
|
|
29
|
+
if len(color) == 5:
|
|
30
|
+
# case when color is in format #RGBA
|
|
31
|
+
return color[:4]
|
|
32
|
+
elif isinstance(color, list):
|
|
33
|
+
return [color[i] / 255 for i in range(3)]
|
|
34
|
+
# If not fit to an earlier case, return as is.
|
|
35
|
+
# Maybe napari will handle it
|
|
36
|
+
return color
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if parse_version(version("napari")) >= parse_version("0.4.19a1"):
|
|
40
|
+
|
|
41
|
+
def add_color(image: Image, idx: int) -> dict:
|
|
42
|
+
return {
|
|
43
|
+
"colormap": adjust_color(image.get_colors()[idx]),
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
else:
|
|
47
|
+
|
|
48
|
+
def add_color(image: Image, idx: int) -> dict: # noqa: ARG001
|
|
49
|
+
# Do nothing, as napari is not able to pass hex color to image
|
|
50
|
+
# the image and idx are present to keep the same signature
|
|
51
|
+
return {}
|
|
8
52
|
|
|
9
53
|
|
|
10
54
|
def _image_to_layers(project_info, scale, translate):
|
|
@@ -26,6 +70,8 @@ def _image_to_layers(project_info, scale, translate):
|
|
|
26
70
|
"name": project_info.image.channel_names[i],
|
|
27
71
|
"blending": "additive",
|
|
28
72
|
"translate": translate,
|
|
73
|
+
"metadata": project_info.image.metadata,
|
|
74
|
+
**add_color(project_info.image, i),
|
|
29
75
|
},
|
|
30
76
|
"image",
|
|
31
77
|
)
|
|
@@ -4,7 +4,7 @@ from typing import Any, List, Optional
|
|
|
4
4
|
import numpy as np
|
|
5
5
|
from napari.types import FullLayerData
|
|
6
6
|
|
|
7
|
-
from PartSegImage import Image, ImageWriter
|
|
7
|
+
from PartSegImage import ChannelInfo, Image, ImageWriter
|
|
8
8
|
from PartSegImage.image import DEFAULT_SCALE_FACTOR
|
|
9
9
|
|
|
10
10
|
|
|
@@ -15,9 +15,9 @@ def napari_write_labels(path: str, data: Any, meta: dict) -> Optional[str]:
|
|
|
15
15
|
scale_shift = min(data.ndim, 3)
|
|
16
16
|
image = Image(
|
|
17
17
|
data,
|
|
18
|
-
np.divide(meta["scale"], DEFAULT_SCALE_FACTOR)[-scale_shift:],
|
|
18
|
+
spacing=np.divide(meta["scale"], DEFAULT_SCALE_FACTOR)[-scale_shift:],
|
|
19
19
|
axes_order="TZYX"[-data.ndim :],
|
|
20
|
-
|
|
20
|
+
channel_info=[ChannelInfo(name=meta["name"])],
|
|
21
21
|
shift=np.divide(meta["translate"], DEFAULT_SCALE_FACTOR)[-scale_shift:],
|
|
22
22
|
name="ROI",
|
|
23
23
|
)
|
|
@@ -50,9 +50,9 @@ def napari_write_images(path: str, layer_data: List[FullLayerData]) -> List[str]
|
|
|
50
50
|
scale_shift -= 1
|
|
51
51
|
image = Image(
|
|
52
52
|
data,
|
|
53
|
-
np.divide(meta["scale"], DEFAULT_SCALE_FACTOR)[-scale_shift:],
|
|
53
|
+
spacing=np.divide(meta["scale"], DEFAULT_SCALE_FACTOR)[-scale_shift:],
|
|
54
54
|
axes_order=axes,
|
|
55
|
-
|
|
55
|
+
channel_info=[ChannelInfo(name=x) for x in channel_names],
|
|
56
56
|
shift=np.divide(meta["translate"], DEFAULT_SCALE_FACTOR)[-scale_shift:],
|
|
57
57
|
name="Image",
|
|
58
58
|
)
|
|
@@ -3,7 +3,7 @@ import sys
|
|
|
3
3
|
|
|
4
4
|
from PartSegImage import tifffile_fixes # noqa: F401
|
|
5
5
|
from PartSegImage.channel_class import Channel
|
|
6
|
-
from PartSegImage.image import Image
|
|
6
|
+
from PartSegImage.image import ChannelInfo, ChannelInfoFull, Image
|
|
7
7
|
from PartSegImage.image_reader import (
|
|
8
8
|
CziImageReader,
|
|
9
9
|
GenericImageReader,
|
|
@@ -17,6 +17,8 @@ from PartSegImage.image_writer import BaseImageWriter, IMAGEJImageWriter, ImageW
|
|
|
17
17
|
__all__ = (
|
|
18
18
|
"BaseImageWriter",
|
|
19
19
|
"Channel",
|
|
20
|
+
"ChannelInfo",
|
|
21
|
+
"ChannelInfoFull",
|
|
20
22
|
"Image",
|
|
21
23
|
"TiffImageReader",
|
|
22
24
|
"IMAGEJImageWriter",
|