PartSeg 0.15.4b5__tar.gz → 0.15.4b6__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.4b6}/PKG-INFO +8 -8
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_launcher/check_version.py +2 -4
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/except_hook.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/dict_viewer.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/error_report.py +2 -2
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/napari_image_view.py +16 -8
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/napari.yaml +5 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/__init__.py +2 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/lables_control.py +5 -2
- partseg-0.15.4b6/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +29 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +3 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/version.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg.egg-info/PKG-INFO +8 -8
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg.egg-info/SOURCES.txt +1 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg.egg-info/requires.txt +3 -3
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/batch_processing/batch_backend.py +6 -3
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/loader.py +1 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegImage/image_reader.py +8 -4
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_check_release.py +11 -6
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_common_gui.py +2 -2
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_napari_image_view.py +5 -1
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_napari_widgets.py +40 -2
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_sentry.py +14 -19
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_napari_plugins.py +1 -1
- {partseg-0.15.4b5 → partseg-0.15.4b6}/pyproject.toml +21 -3
- {partseg-0.15.4b5 → partseg-0.15.4b6}/.napari/DESCRIPTION.md +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/.napari/config.yml +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/CITATION.cff +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/License.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/MANIFEST.in +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/Readme.md +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/changelog.md +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/__main__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_launcher/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_launcher/check_survey.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_launcher/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/_roi_mask/stack_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/changelog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/abstract_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/base_argparser.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/base_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/load_backup.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/progress_thread.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/about_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/advanced_tabs.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/algorithms_description.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/channel_control.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/colormap_creator.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/custom_buttons.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/custom_save_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/exception_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/flow_layout.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/icon_selector.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/image_adjustment.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/label_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/mask_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/qt_console.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/qt_modal.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/qt_util.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/select_multiple_files.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/stack_image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/launcher_main.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/itk_snap_save/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/modeling_save/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/napari_widgets/utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/old_partseg/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg/state_store.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg.egg-info/dependency_links.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg.egg-info/entry_points.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSeg.egg-info/top_level.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/_old_json_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/algorithm_describe_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/algorithm_description.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/analysis_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/calculation_plan.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/io_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/load_functions.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/measurement_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/measurement_calculation.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/analysis/save_functions.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/autofit.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/channel_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/class_generator.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/color_image/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/color_image/base_colors.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/color_image/color_data.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/convex_fill.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/custom_name_generate.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_operations.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_transforming/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_transforming/image_projection.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/image_transforming/transform_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/io_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/json_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/mask/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/mask/algorithm_description.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/mask/history_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/mask/io_functions.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/mask_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/mask_partition_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/load_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/load_mask_project.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/load_masked_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/load_roi_project.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/save_mask_roi.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/napari_plugins/save_tiff_layer.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/plugins/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/project_info.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/register.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/roi_info.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/threshold.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/segmentation/watershed.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/sphinx/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/universal_const.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegCore/utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegImage/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegImage/channel_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegImage/image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegImage/image_writer.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/PartSegImage/tifffile_fixes.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/conftest.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/conftest.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_analysis.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_base_widgets.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_channel_control.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_check_survey.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_common_backend.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_io.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_label_choose.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_launcher.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_main_windows.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_roi_analysis_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_settings.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_viewer.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSeg/test_window_import.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_analysis_batch.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_base.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_class_generator.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_class_register.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_image_adjustment.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_io.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_json_hooks.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_mask_create.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_measurements.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_min_req.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_mso.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_segmentation.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_smooth.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegCore/test_utils.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegImage/__init__.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegImage/test_image.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_PartSegImage/test_image_writer.py +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/measurements_profile.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/napari_measurements_profile.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/notebook/segment_data.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/ome.xsd.xml +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/problematic_json_batch.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/problematic_profile_dict.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/range_profile.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/sample_batch_output.xlsx +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/package/tests/test_data/workflow.json +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.10.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.10_pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.11.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.11_docs.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.11_pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.12.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.12_pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.8.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.8_pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.9.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/constraints_py3.9_pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/dependabot_runtime.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/pre_test_problematic_version.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/pydantic_1.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/requirements_ci.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/requirements_dev.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/requirements_test.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/requirements/version_denylist.txt +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/setup.cfg +0 -0
- {partseg-0.15.4b5 → partseg-0.15.4b6}/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.4b6
|
|
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.4b6/PartSeg-0.15.4b6-windows.zip) (build on Windows 10)
|
|
153
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b6/PartSeg-0.15.4b6-linux.zip) (build on Ubuntu 20.04)
|
|
154
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b6/PartSeg-0.15.4b6-macos.zip) (build on macOS 13)
|
|
155
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b6/PartSeg-0.15.4b6-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)
|
|
@@ -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.4b6}/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.4b6}/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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PartSeg
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.4b6
|
|
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.4b6/PartSeg-0.15.4b6-windows.zip) (build on Windows 10)
|
|
153
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b6/PartSeg-0.15.4b6-linux.zip) (build on Ubuntu 20.04)
|
|
154
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b6/PartSeg-0.15.4b6-macos.zip) (build on macOS 13)
|
|
155
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b6/PartSeg-0.15.4b6-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.4b6}/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):
|
|
@@ -71,13 +71,13 @@ def decode_zstd1(data: bytes) -> np.ndarray:
|
|
|
71
71
|
header = parse_zstd1_header(data, len(data))
|
|
72
72
|
dtype = _get_dtype()
|
|
73
73
|
if header.hiLoByteUnpackPreprocessing:
|
|
74
|
-
array_ = np.
|
|
74
|
+
array_ = np.frombuffer(imagecodecs.zstd_decode(data[header.header_size :]), np.uint8).copy()
|
|
75
75
|
half_size = array_.size // 2
|
|
76
76
|
array = np.empty(half_size, np.uint16)
|
|
77
77
|
array[:] = array_[:half_size] + (array_[half_size:].astype(np.uint16) << 8)
|
|
78
78
|
array = array.view(dtype)
|
|
79
79
|
else:
|
|
80
|
-
array = np.
|
|
80
|
+
array = np.frombuffer(imagecodecs.zstd_decode(data[header.header_size :]), dtype).copy()
|
|
81
81
|
return array
|
|
82
82
|
|
|
83
83
|
|
|
@@ -86,7 +86,7 @@ def decode_zstd0(data: bytes) -> np.ndarray:
|
|
|
86
86
|
Decode ZSTD0 data
|
|
87
87
|
"""
|
|
88
88
|
dtype = _get_dtype()
|
|
89
|
-
return np.
|
|
89
|
+
return np.frombuffer(imagecodecs.zstd_decode(data), dtype).copy()
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
if parse_version(version("czifile")) == parse_version("2019.7.2"):
|
|
@@ -306,7 +306,10 @@ class OifImagReader(BaseImageReader):
|
|
|
306
306
|
def read(self, image_path: typing.Union[str, Path], mask_path=None, ext=None) -> Image:
|
|
307
307
|
with OifFile(image_path) as image_file:
|
|
308
308
|
tiffs = tifffile.natural_sorted(image_file.glob("*.tif"))
|
|
309
|
-
|
|
309
|
+
|
|
310
|
+
with image_file.open_file(tiffs[0]) as tiff_buffer, tifffile.TiffFile(
|
|
311
|
+
tiff_buffer, name=tiffs[0]
|
|
312
|
+
) as tif_file:
|
|
310
313
|
axes = image_file.series[0].axes + tif_file.series[0].axes
|
|
311
314
|
image_data = image_file.asarray()
|
|
312
315
|
image_data = self.update_array_shape(image_data, axes)
|
|
@@ -366,6 +369,7 @@ class CziImageReader(BaseImageReaderBuffer):
|
|
|
366
369
|
# TODO add mask reading
|
|
367
370
|
if isinstance(image_path, BytesIO):
|
|
368
371
|
image_path = ""
|
|
372
|
+
image_file.close()
|
|
369
373
|
return self.image_class(
|
|
370
374
|
image_data,
|
|
371
375
|
self.spacing,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import urllib.error
|
|
2
3
|
import urllib.request
|
|
3
4
|
from datetime import date, timedelta
|
|
4
5
|
from io import StringIO
|
|
@@ -68,15 +69,17 @@ def test_show_window_dialog(monkeypatch, frozen, qtbot):
|
|
|
68
69
|
assert "You can update it from pypi" in values[1]
|
|
69
70
|
|
|
70
71
|
|
|
71
|
-
def test_no_update(monkeypatch, qtbot):
|
|
72
|
-
|
|
72
|
+
def test_no_update(monkeypatch, qtbot, tmp_path):
|
|
73
|
+
# check if nothing is reported on ulr error
|
|
74
|
+
monkeypatch.setattr("PartSeg.state_store.save_folder", tmp_path)
|
|
73
75
|
|
|
74
76
|
def urlopen_mock(url):
|
|
75
|
-
raise
|
|
77
|
+
raise urllib.error.URLError("test purpose")
|
|
76
78
|
|
|
77
79
|
monkeypatch.setattr(urllib.request, "urlopen", urlopen_mock)
|
|
78
|
-
chk_thr = check_version.CheckVersionThread()
|
|
80
|
+
chk_thr = check_version.CheckVersionThread(base_version="0.10.0")
|
|
79
81
|
chk_thr.run()
|
|
82
|
+
assert chk_thr.release == "0.10.0"
|
|
80
83
|
|
|
81
84
|
|
|
82
85
|
def test_error_report(monkeypatch, qtbot):
|
|
@@ -118,13 +121,15 @@ def test_ignore_file_exists_old_date(monkeypatch, qtbot, tmp_path):
|
|
|
118
121
|
monkeypatch.setattr(state_store, "save_folder", tmp_path)
|
|
119
122
|
|
|
120
123
|
def urlopen_mock(_url):
|
|
121
|
-
return StringIO("")
|
|
124
|
+
return StringIO('{"info": {"version": "0.11.0", "home_page": "example.org"}}')
|
|
122
125
|
|
|
123
126
|
monkeypatch.setattr(urllib.request, "urlopen", urlopen_mock)
|
|
124
127
|
|
|
125
|
-
chk_thr = check_version.CheckVersionThread()
|
|
128
|
+
chk_thr = check_version.CheckVersionThread(base_version="0.10.0")
|
|
126
129
|
chk_thr.run()
|
|
127
130
|
assert not (tmp_path / IGNORE_FILE).exists()
|
|
131
|
+
assert chk_thr.release == "0.11.0"
|
|
132
|
+
assert chk_thr.url == "example.org"
|
|
128
133
|
|
|
129
134
|
|
|
130
135
|
def test_create_ignore(qtbot, tmp_path, monkeypatch):
|
|
@@ -1767,7 +1767,7 @@ class TestErrorDialog:
|
|
|
1767
1767
|
assert "body=This" in mock_web.call_args.args[0]
|
|
1768
1768
|
|
|
1769
1769
|
@patch("requests.post")
|
|
1770
|
-
@patch("sentry_sdk.
|
|
1770
|
+
@patch("sentry_sdk.new_scope")
|
|
1771
1771
|
def test_send_report(self, sentry_mock, request_mock, qtbot):
|
|
1772
1772
|
dialog = ErrorDialog(ValueError("aaa"), "Test text")
|
|
1773
1773
|
qtbot.addWidget(dialog)
|
|
@@ -1777,7 +1777,7 @@ class TestErrorDialog:
|
|
|
1777
1777
|
request_mock.assert_not_called()
|
|
1778
1778
|
|
|
1779
1779
|
@patch("requests.post")
|
|
1780
|
-
@patch("sentry_sdk.
|
|
1780
|
+
@patch("sentry_sdk.new_scope")
|
|
1781
1781
|
@pytest.mark.parametrize(
|
|
1782
1782
|
("email", "expected", "return_code", "post_call_count"),
|
|
1783
1783
|
[
|
|
@@ -28,16 +28,20 @@ from PartSegCore.roi_info import ROIInfo
|
|
|
28
28
|
from PartSegImage import Image
|
|
29
29
|
|
|
30
30
|
NAPARI_GE_5_0 = parse_version(version("napari")) >= parse_version("0.5.0a1")
|
|
31
|
+
NAPARI_GE_4_19 = parse_version(version("napari")) >= parse_version("0.4.19a1")
|
|
31
32
|
|
|
32
33
|
|
|
33
34
|
if NAPARI_GE_5_0:
|
|
34
35
|
EXPECTED_RANGE = (0, 0, 1)
|
|
36
|
+
else:
|
|
37
|
+
EXPECTED_RANGE = (0, 1, 1)
|
|
38
|
+
|
|
39
|
+
if NAPARI_GE_4_19:
|
|
35
40
|
|
|
36
41
|
def get_color_dict(layer):
|
|
37
42
|
return layer.colormap.color_dict
|
|
38
43
|
|
|
39
44
|
else:
|
|
40
|
-
EXPECTED_RANGE = (0, 1, 1)
|
|
41
45
|
|
|
42
46
|
def get_color_dict(layer):
|
|
43
47
|
return layer.color
|
|
@@ -22,6 +22,7 @@ from PartSeg.common_gui.napari_image_view import SearchType
|
|
|
22
22
|
from PartSeg.plugins.napari_widgets import (
|
|
23
23
|
CopyLabelsWidget,
|
|
24
24
|
ImageColormap,
|
|
25
|
+
LayerMetadata,
|
|
25
26
|
MaskCreate,
|
|
26
27
|
ROIAnalysisExtraction,
|
|
27
28
|
ROIMaskExtraction,
|
|
@@ -58,8 +59,9 @@ from PartSegCore.segmentation.threshold import DoubleThresholdSelection, Thresho
|
|
|
58
59
|
from PartSegCore.segmentation.watershed import WatershedSelection
|
|
59
60
|
|
|
60
61
|
NAPARI_GE_5_0 = parse_version(version("napari")) >= parse_version("0.5.0a1")
|
|
62
|
+
NAPARI_GE_4_19 = parse_version(version("napari")) >= parse_version("0.4.19a1")
|
|
61
63
|
|
|
62
|
-
if
|
|
64
|
+
if NAPARI_GE_4_19:
|
|
63
65
|
|
|
64
66
|
def check_auto_mode(layer):
|
|
65
67
|
from napari.utils.colormaps import CyclicLabelColormap
|
|
@@ -387,7 +389,8 @@ def test_napari_label_show(viewer_with_data, qtbot):
|
|
|
387
389
|
viewer_with_data.layers.selection.remove(viewer_with_data.layers["image"])
|
|
388
390
|
assert widget.apply_label_btn.isEnabled()
|
|
389
391
|
check_auto_mode(viewer_with_data.layers["label"])
|
|
390
|
-
widget.apply_label_btn.
|
|
392
|
+
with qtbot.waitSignal(widget.apply_label_btn.clicked):
|
|
393
|
+
widget.apply_label_btn.click()
|
|
391
394
|
check_direct_mode(viewer_with_data.layers["label"])
|
|
392
395
|
|
|
393
396
|
|
|
@@ -598,6 +601,41 @@ class TestCopyLabels:
|
|
|
598
601
|
assert not copy_labels.checkbox_layout.itemAt(0).widget().isChecked()
|
|
599
602
|
|
|
600
603
|
|
|
604
|
+
class TestLayerMetadata:
|
|
605
|
+
def test_init(self, make_napari_viewer, qtbot):
|
|
606
|
+
viewer = make_napari_viewer()
|
|
607
|
+
widget = LayerMetadata(viewer)
|
|
608
|
+
qtbot.addWidget(widget)
|
|
609
|
+
assert widget._dict_viewer._data == {}
|
|
610
|
+
|
|
611
|
+
def test_init_with_layer(self, make_napari_viewer, qtbot):
|
|
612
|
+
viewer = make_napari_viewer()
|
|
613
|
+
viewer.add_image(
|
|
614
|
+
np.ones((10, 10)),
|
|
615
|
+
contrast_limits=[0, 1],
|
|
616
|
+
metadata={"foo": "bar"},
|
|
617
|
+
)
|
|
618
|
+
widget = LayerMetadata(viewer)
|
|
619
|
+
viewer.window.add_dock_widget(widget)
|
|
620
|
+
widget.reset_choices()
|
|
621
|
+
assert widget.layer_selector.value is not None
|
|
622
|
+
assert widget._dict_viewer._data == {"foo": "bar"}
|
|
623
|
+
|
|
624
|
+
def test_add_layer_post_init(self, make_napari_viewer, qtbot):
|
|
625
|
+
viewer = make_napari_viewer()
|
|
626
|
+
widget = LayerMetadata(viewer)
|
|
627
|
+
viewer.window.add_dock_widget(widget)
|
|
628
|
+
assert widget._dict_viewer._data == {}
|
|
629
|
+
viewer.add_image(
|
|
630
|
+
np.ones((10, 10)),
|
|
631
|
+
contrast_limits=[0, 1],
|
|
632
|
+
metadata={"foo": "bar"},
|
|
633
|
+
)
|
|
634
|
+
widget.reset_choices()
|
|
635
|
+
assert widget.layer_selector.value is not None
|
|
636
|
+
assert widget._dict_viewer._data == {"foo": "bar"}
|
|
637
|
+
|
|
638
|
+
|
|
601
639
|
def test_enum():
|
|
602
640
|
assert " " in str(CompareType.lower_threshold)
|
|
603
641
|
assert " " in str(FlowType.dark_center)
|