PartSeg 0.16.5__tar.gz → 0.17.0__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.16.5 → partseg-0.17.0}/PKG-INFO +69 -29
- {partseg-0.16.5 → partseg-0.17.0}/changelog.md +41 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/advanced_window.py +13 -13
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/batch_window.py +3 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +9 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/export_batch.py +2 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/image_view.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/measurement_widget.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/partseg_settings.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +9 -9
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/profile_export.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/batch_proceed.py +4 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/main_window.py +3 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/stack_settings.py +4 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/changelog.py +41 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/base_argparser.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/base_settings.py +21 -21
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/load_backup.py +5 -9
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/partially_const_dict.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/progress_thread.py +8 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/advanced_tabs.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/algorithms_description.py +14 -13
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/channel_control.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/collapse_checkbox.py +6 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/colormap_creator.py +8 -9
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/custom_load_dialog.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/custom_save_dialog.py +5 -5
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/error_report.py +11 -20
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/image_adjustment.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/label_create.py +13 -9
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/main_window.py +9 -8
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/mask_widget.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/napari_image_view.py +29 -39
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/napari_viewer_wrap.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/stack_image_view.py +7 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/universal_gui_part.py +5 -5
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/itk_snap_save/__init__.py +5 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +5 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/loader.py +6 -17
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/save_mask_roi.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/save_tiff_layer.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/_settings.py +4 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +2 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/colormap_control.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/lables_control.py +0 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +2 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/utils.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/old_partseg/old_partseg.py +6 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/state_store.py +2 -2
- partseg-0.17.0/package/PartSeg/version.py +24 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg.egg-info/PKG-INFO +69 -29
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg.egg-info/SOURCES.txt +1 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg.egg-info/requires.txt +23 -23
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/_old_json_hooks.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/algorithm_describe_base.py +15 -14
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/batch_processing/batch_backend.py +5 -5
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +2 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/calculate_pipeline.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/calculation_plan.py +15 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/io_utils.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/load_functions.py +33 -33
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/measurement_base.py +8 -8
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/measurement_calculation.py +22 -23
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/save_functions.py +14 -15
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/autofit.py +14 -11
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/class_generator.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/color_image/base_colors.py +7 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/convex_fill.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_operations.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_transforming/combine_channels.py +7 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_transforming/image_projection.py +3 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_transforming/interpolate_image.py +9 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_transforming/swap_time_stack.py +3 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_transforming/transform_base.py +4 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/io_utils.py +31 -31
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/mask/io_functions.py +43 -45
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/mask_create.py +9 -9
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/mask_partition_utils.py +2 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/plugins/__init__.py +0 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/project_info.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/roi_info.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/algorithm_base.py +9 -9
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +8 -10
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/segmentation_algorithm.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/threshold.py +8 -12
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/watershed.py +2 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/utils.py +9 -4
- partseg-0.17.0/package/PartSegImage/channel_class.py +87 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegImage/image.py +13 -15
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegImage/image_reader.py +23 -19
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegImage/image_writer.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_colormap_create.py +2 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_common_backend.py +5 -6
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_common_gui.py +12 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_napari_image_view.py +4 -20
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_napari_io.py +0 -5
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_napari_widgets.py +6 -19
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_roi_analysis_batch.py +2 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_sentry.py +14 -44
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_viewer.py +1 -3
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +6 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_analysis_batch.py +4 -4
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_class_generator.py +7 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_mask_create.py +5 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_measurements.py +1 -1
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_segmentation.py +1 -2
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegImage/test_channel_class.py +6 -7
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegImage/test_image.py +4 -4
- {partseg-0.16.5 → partseg-0.17.0}/pyproject.toml +30 -27
- {partseg-0.16.5 → partseg-0.17.0}/requirements/constraints_py3.10.txt +54 -56
- {partseg-0.16.5 → partseg-0.17.0}/requirements/constraints_py3.11.txt +57 -59
- {partseg-0.16.5 → partseg-0.17.0}/requirements/constraints_py3.12.txt +59 -61
- {partseg-0.16.5 → partseg-0.17.0}/requirements/constraints_py3.12_docs.txt +60 -64
- {partseg-0.16.5 → partseg-0.17.0}/requirements/constraints_py3.13.txt +59 -61
- partseg-0.17.0/requirements/constraints_py3.14.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/pre_test_problematic_version.txt +1 -0
- partseg-0.16.5/package/PartSeg/version.py +0 -34
- partseg-0.16.5/package/PartSegImage/channel_class.py +0 -85
- partseg-0.16.5/requirements/constraints_py3.10_pydantic_1.txt +0 -517
- partseg-0.16.5/requirements/constraints_py3.11_pydantic_1.txt +0 -502
- partseg-0.16.5/requirements/constraints_py3.12_pydantic_1.txt +0 -498
- partseg-0.16.5/requirements/constraints_py3.13_pydantic_1.txt +0 -497
- partseg-0.16.5/requirements/constraints_py3.9.txt +0 -528
- partseg-0.16.5/requirements/constraints_py3.9_pydantic_1.txt +0 -521
- {partseg-0.16.5 → partseg-0.17.0}/.napari/DESCRIPTION.md +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/.napari/config.yml +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/CITATION.cff +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/License.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/MANIFEST.in +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/Readme.md +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/__main__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_launcher/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_launcher/check_survey.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_launcher/check_version.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_launcher/main_window.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/main_window.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/image_view.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/abstract_class.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/except_hook.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/about_dialog.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/custom_buttons.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/dict_viewer.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/exception_hooks.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/flow_layout.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/icon_selector.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/qt_console.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/qt_modal.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/qt_util.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/select_multiple_files.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/launcher_main.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/napari.yaml +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/modeling_save/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/load_image.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/load_mask_project.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/load_masked_image.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_io/load_roi_project.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/plugins/old_partseg/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg.egg-info/dependency_links.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg.egg-info/entry_points.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSeg.egg-info/top_level.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/algorithm_description.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/analysis_utils.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/channel_class.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/color_image/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/color_image/color_data.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/custom_name_generate.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/image_transforming/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/json_hooks.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/mask/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/mask/algorithm_description.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/mask/history_utils.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/register.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/segmentation/utils.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/sphinx/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegCore/universal_const.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegImage/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegImage/czifile_fixes.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/PartSegImage/tifffile_fixes.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/conftest.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/conftest.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_analysis.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_base.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_base_widgets.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_channel_control.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_check_release.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_check_survey.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_io.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_label_choose.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_launcher.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_main_windows.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_settings.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSeg/test_window_import.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_base.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_class_register.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_image_adjustment.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_io.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_json_hooks.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_min_req.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_mso.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_smooth.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegCore/test_utils.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegImage/__init__.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_PartSegImage/test_image_writer.py +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/measurements_profile.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/napari_measurements_profile.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/notebook/segment_data.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/ome.xsd.xml +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/problematic_json_batch.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/problematic_profile_dict.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/range_profile.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/sample_batch_output.xlsx +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/package/tests/test_data/workflow.json +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/dependabot_runtime.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/pydantic_1.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/requirements_ci.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/requirements_dev.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/requirements_test.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/requirements/version_denylist.txt +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/setup.cfg +0 -0
- {partseg-0.16.5 → partseg-0.17.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PartSeg
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.17.0
|
|
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-Expression: BSD-3-Clause
|
|
@@ -18,61 +18,59 @@ Classifier: Framework :: napari
|
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
25
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
26
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
28
27
|
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
29
28
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
30
|
-
Requires-Python: >=3.
|
|
29
|
+
Requires-Python: >=3.10
|
|
31
30
|
Description-Content-Type: text/markdown
|
|
32
31
|
License-File: License.txt
|
|
33
32
|
Requires-Dist: IPython>=7.7.0
|
|
34
33
|
Requires-Dist: PartSegCore-compiled-backend<0.16.0,>=0.13.11
|
|
35
34
|
Requires-Dist: PartSegData==0.10.0
|
|
36
35
|
Requires-Dist: QtAwesome!=1.2.0,>=1.0.3
|
|
37
|
-
Requires-Dist: QtPy>=
|
|
38
|
-
Requires-Dist: SimpleITK>=2.
|
|
39
|
-
Requires-Dist:
|
|
36
|
+
Requires-Dist: QtPy>=2.3.1
|
|
37
|
+
Requires-Dist: SimpleITK>=2.2.0
|
|
38
|
+
Requires-Dist: platformdirs>=4.3.0
|
|
40
39
|
Requires-Dist: czifile>=2019.5.22
|
|
41
40
|
Requires-Dist: defusedxml>=0.6.0
|
|
42
41
|
Requires-Dist: fonticon-fontawesome6>=6.1.1
|
|
43
|
-
Requires-Dist: h5py>=3.
|
|
44
|
-
Requires-Dist: imagecodecs>=
|
|
42
|
+
Requires-Dist: h5py>=3.7.0
|
|
43
|
+
Requires-Dist: imagecodecs>=2023.9.18
|
|
45
44
|
Requires-Dist: imageio>=2.20.0
|
|
46
45
|
Requires-Dist: ipykernel>=5.2.0
|
|
47
|
-
Requires-Dist: local-migrator>=0.1.
|
|
46
|
+
Requires-Dist: local-migrator>=0.1.10
|
|
48
47
|
Requires-Dist: magicgui>=0.7.0
|
|
49
|
-
Requires-Dist: mahotas>=1.4.
|
|
50
|
-
Requires-Dist: napari>=0.
|
|
51
|
-
Requires-Dist:
|
|
52
|
-
Requires-Dist: numpy>=1.
|
|
53
|
-
Requires-Dist: numpy<2,>=1.22.2; python_version < "3.10"
|
|
48
|
+
Requires-Dist: mahotas>=1.4.13
|
|
49
|
+
Requires-Dist: napari>=0.6.2; python_version < "3.14"
|
|
50
|
+
Requires-Dist: napari>=0.7.0; python_version >= "3.14"
|
|
51
|
+
Requires-Dist: numpy>=1.24.2
|
|
54
52
|
Requires-Dist: oiffile>=2020.1.18
|
|
55
53
|
Requires-Dist: openpyxl>=3.0.7
|
|
56
54
|
Requires-Dist: packaging>=22.0
|
|
57
|
-
Requires-Dist: pandas>=1.
|
|
58
|
-
Requires-Dist: psygnal>=0.
|
|
59
|
-
Requires-Dist: pydantic
|
|
55
|
+
Requires-Dist: pandas>=1.4.0
|
|
56
|
+
Requires-Dist: psygnal>=0.10.0
|
|
57
|
+
Requires-Dist: pydantic>=2.2.0
|
|
60
58
|
Requires-Dist: pygments>=2.12.0
|
|
61
59
|
Requires-Dist: qtconsole>=4.7.7
|
|
62
60
|
Requires-Dist: requests>=2.25.0
|
|
63
|
-
Requires-Dist: scipy>=1.
|
|
61
|
+
Requires-Dist: scipy>=1.10.1
|
|
64
62
|
Requires-Dist: sentry-sdk>=2.4.0
|
|
65
63
|
Requires-Dist: six>=1.11.0
|
|
66
|
-
Requires-Dist: superqt>=0.
|
|
64
|
+
Requires-Dist: superqt>=0.7.3
|
|
67
65
|
Requires-Dist: sympy>=1.10
|
|
68
|
-
Requires-Dist: tifffile>=
|
|
66
|
+
Requires-Dist: tifffile>=2023.9.26
|
|
69
67
|
Requires-Dist: traceback-with-variables>=2.0.4
|
|
70
|
-
Requires-Dist: vispy>=0.
|
|
68
|
+
Requires-Dist: vispy>=0.15.2
|
|
71
69
|
Requires-Dist: xlrd>=1.1.0
|
|
72
70
|
Requires-Dist: xlsxwriter>=2.0.0
|
|
73
71
|
Provides-Extra: accelerate
|
|
74
72
|
Provides-Extra: all
|
|
75
|
-
Requires-Dist: PartSeg[accelerate,
|
|
73
|
+
Requires-Dist: PartSeg[accelerate,pyqt]; extra == "all"
|
|
76
74
|
Provides-Extra: docs
|
|
77
75
|
Requires-Dist: autodoc-pydantic; extra == "docs"
|
|
78
76
|
Requires-Dist: sphinx!=3.0.0,!=3.5.0; extra == "docs"
|
|
@@ -85,7 +83,7 @@ Requires-Dist: PartSeg[accelerate]; extra == "pyinstaller-base"
|
|
|
85
83
|
Requires-Dist: PyInstaller; extra == "pyinstaller-base"
|
|
86
84
|
Requires-Dist: pydantic; extra == "pyinstaller-base"
|
|
87
85
|
Provides-Extra: pyqt
|
|
88
|
-
Requires-Dist: PartSeg[
|
|
86
|
+
Requires-Dist: PartSeg[pyqt6]; extra == "pyqt"
|
|
89
87
|
Provides-Extra: pyqt5
|
|
90
88
|
Requires-Dist: PyQt5!=5.15.0,>=5.12.3; extra == "pyqt5"
|
|
91
89
|
Requires-Dist: napari[pyqt5]; extra == "pyqt5"
|
|
@@ -93,10 +91,11 @@ Provides-Extra: pyqt6
|
|
|
93
91
|
Requires-Dist: PyQt6; extra == "pyqt6"
|
|
94
92
|
Requires-Dist: napari[pyqt6]>=0.5.0; extra == "pyqt6"
|
|
95
93
|
Provides-Extra: pyside
|
|
96
|
-
Requires-Dist: PartSeg[
|
|
94
|
+
Requires-Dist: PartSeg[pyside6]; extra == "pyside"
|
|
97
95
|
Provides-Extra: pyside2
|
|
98
96
|
Requires-Dist: PySide2!=5.15.0,>=5.12.3; extra == "pyside2"
|
|
99
97
|
Requires-Dist: napari[pyside]<0.7.0; extra == "pyside2"
|
|
98
|
+
Requires-Dist: superqt<0.8.0; extra == "pyside2"
|
|
100
99
|
Provides-Extra: pyside6
|
|
101
100
|
Requires-Dist: PySide6; extra == "pyside6"
|
|
102
101
|
Requires-Dist: napari[pyside6]>=0.5.0; extra == "pyside6"
|
|
@@ -151,10 +150,10 @@ This application is designed to help biologist with segmentation based on thresh
|
|
|
151
150
|
|
|
152
151
|
- From binaries:
|
|
153
152
|
|
|
154
|
-
- [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.
|
|
155
|
-
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.
|
|
156
|
-
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.
|
|
157
|
-
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.
|
|
153
|
+
- [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.17.0/PartSeg-0.17.0-windows.zip) (build on Windows 10)
|
|
154
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.17.0/PartSeg-0.17.0-linux.zip) (build on Ubuntu 20.04)
|
|
155
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.17.0/PartSeg-0.17.0-macos.zip) (build on macOS 13)
|
|
156
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.17.0/PartSeg-0.17.0-macos-arm64.zip) (build on macOS 14)
|
|
158
157
|
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.
|
|
159
158
|
|
|
160
159
|
- With pip:
|
|
@@ -244,6 +243,47 @@ from 3D microscopy images for dummies. BMC Bioinformatics 22, 72 (2021).
|
|
|
244
243
|
|
|
245
244
|
All notable changes to this project will be documented in this file.
|
|
246
245
|
|
|
246
|
+
### 0.17.0 - 2026-06-10
|
|
247
|
+
|
|
248
|
+
#### 🧪 Testing
|
|
249
|
+
|
|
250
|
+
- [Automatic] Constraints upgrades: `qtconsole`, `requests`, `sentry-sdk` ([#1375](https://github.com/4DNucleome/PartSeg/pull/1375))
|
|
251
|
+
- [Automatic] Constraints upgrades: `ipython`, `numpy`, `pandas`, `pygments`, `requests`, `sentry-sdk` ([#1377](https://github.com/4DNucleome/PartSeg/pull/1377))
|
|
252
|
+
- [Automatic] Constraints upgrades: `ipykernel`, `magicgui`, `napari`, `platformdirs`, `qtawesome` ([#1381](https://github.com/4DNucleome/PartSeg/pull/1381))
|
|
253
|
+
- [Automatic] Constraints upgrades: `packaging`, `pydantic`, `sentry-sdk` ([#1386](https://github.com/4DNucleome/PartSeg/pull/1386))
|
|
254
|
+
|
|
255
|
+
#### ⚙️ Miscellaneous Tasks
|
|
256
|
+
|
|
257
|
+
- Replace `appdirs`package with `platformdirs` ([#1373](https://github.com/4DNucleome/PartSeg/pull/1373))
|
|
258
|
+
- Limit superqt version below 0.8.0 when installing pyside2 as qt backend ([#1374](https://github.com/4DNucleome/PartSeg/pull/1374))
|
|
259
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1378](https://github.com/4DNucleome/PartSeg/pull/1378))
|
|
260
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1382](https://github.com/4DNucleome/PartSeg/pull/1382))
|
|
261
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1387](https://github.com/4DNucleome/PartSeg/pull/1387))
|
|
262
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1392](https://github.com/4DNucleome/PartSeg/pull/1392))
|
|
263
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1402](https://github.com/4DNucleome/PartSeg/pull/1402))
|
|
264
|
+
- Use ubuntu-slim for check title workflow ([#1403](https://github.com/4DNucleome/PartSeg/pull/1403))
|
|
265
|
+
- Prepare for numpy 2.5.0 by fixing the `find_density_orientation` implementation ([#1405](https://github.com/4DNucleome/PartSeg/pull/1405))
|
|
266
|
+
- Drop Python 3.9 support ([#1404](https://github.com/4DNucleome/PartSeg/pull/1404))
|
|
267
|
+
- Drop `napari<0.6` and `pydantic<2` ([#1406](https://github.com/4DNucleome/PartSeg/pull/1406))
|
|
268
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1410](https://github.com/4DNucleome/PartSeg/pull/1410))
|
|
269
|
+
- Change default Qt versions from 5 to 6 ([#1412](https://github.com/4DNucleome/PartSeg/pull/1412))
|
|
270
|
+
- Remove `pyside2` from extras during constraints generation ([#1411](https://github.com/4DNucleome/PartSeg/pull/1411))
|
|
271
|
+
|
|
272
|
+
#### 🛡️ Security
|
|
273
|
+
|
|
274
|
+
- *(deps)* Bump codecov/codecov-action from 5 to 6 ([#1379](https://github.com/4DNucleome/PartSeg/pull/1379))
|
|
275
|
+
- *(deps)* Bump github/codeql-action from 4 to 4.35.1 ([#1385](https://github.com/4DNucleome/PartSeg/pull/1385))
|
|
276
|
+
- *(deps)* Bump softprops/action-gh-release from 2 to 3 ([#1383](https://github.com/4DNucleome/PartSeg/pull/1383))
|
|
277
|
+
- *(deps)* Bump github/codeql-action from 4.35.1 to 4.35.2 ([#1390](https://github.com/4DNucleome/PartSeg/pull/1390))
|
|
278
|
+
- *(deps)* Bump conda-incubator/setup-miniconda from 3 to 3.3.0 ([#1388](https://github.com/4DNucleome/PartSeg/pull/1388))
|
|
279
|
+
|
|
280
|
+
#### Build
|
|
281
|
+
|
|
282
|
+
- *(deps)* Bump astral-sh/setup-uv from 8.0.0 to 8.1.0 ([#1389](https://github.com/4DNucleome/PartSeg/pull/1389))
|
|
283
|
+
- *(deps)* Bump conda-incubator/setup-miniconda from 3.3.0 to 4.0.1 ([#1394](https://github.com/4DNucleome/PartSeg/pull/1394))
|
|
284
|
+
- *(deps)* Bump github/codeql-action from 4.35.2 to 4.36.0 ([#1401](https://github.com/4DNucleome/PartSeg/pull/1401))
|
|
285
|
+
- *(deps)* Bump actions/checkout from 6 to 6.0.2 in the github-actions group across 1 directory ([#1408](https://github.com/4DNucleome/PartSeg/pull/1408))
|
|
286
|
+
|
|
247
287
|
### 0.16.5 - 2026-03-24
|
|
248
288
|
|
|
249
289
|
#### 🚀 Features
|
|
@@ -2,6 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.17.0 - 2026-06-10
|
|
6
|
+
|
|
7
|
+
### 🧪 Testing
|
|
8
|
+
|
|
9
|
+
- [Automatic] Constraints upgrades: `qtconsole`, `requests`, `sentry-sdk` ([#1375](https://github.com/4DNucleome/PartSeg/pull/1375))
|
|
10
|
+
- [Automatic] Constraints upgrades: `ipython`, `numpy`, `pandas`, `pygments`, `requests`, `sentry-sdk` ([#1377](https://github.com/4DNucleome/PartSeg/pull/1377))
|
|
11
|
+
- [Automatic] Constraints upgrades: `ipykernel`, `magicgui`, `napari`, `platformdirs`, `qtawesome` ([#1381](https://github.com/4DNucleome/PartSeg/pull/1381))
|
|
12
|
+
- [Automatic] Constraints upgrades: `packaging`, `pydantic`, `sentry-sdk` ([#1386](https://github.com/4DNucleome/PartSeg/pull/1386))
|
|
13
|
+
|
|
14
|
+
### ⚙️ Miscellaneous Tasks
|
|
15
|
+
|
|
16
|
+
- Replace `appdirs`package with `platformdirs` ([#1373](https://github.com/4DNucleome/PartSeg/pull/1373))
|
|
17
|
+
- Limit superqt version below 0.8.0 when installing pyside2 as qt backend ([#1374](https://github.com/4DNucleome/PartSeg/pull/1374))
|
|
18
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1378](https://github.com/4DNucleome/PartSeg/pull/1378))
|
|
19
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1382](https://github.com/4DNucleome/PartSeg/pull/1382))
|
|
20
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1387](https://github.com/4DNucleome/PartSeg/pull/1387))
|
|
21
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1392](https://github.com/4DNucleome/PartSeg/pull/1392))
|
|
22
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1402](https://github.com/4DNucleome/PartSeg/pull/1402))
|
|
23
|
+
- Use ubuntu-slim for check title workflow ([#1403](https://github.com/4DNucleome/PartSeg/pull/1403))
|
|
24
|
+
- Prepare for numpy 2.5.0 by fixing the `find_density_orientation` implementation ([#1405](https://github.com/4DNucleome/PartSeg/pull/1405))
|
|
25
|
+
- Drop Python 3.9 support ([#1404](https://github.com/4DNucleome/PartSeg/pull/1404))
|
|
26
|
+
- Drop `napari<0.6` and `pydantic<2` ([#1406](https://github.com/4DNucleome/PartSeg/pull/1406))
|
|
27
|
+
- [pre-commit.ci] pre-commit autoupdate ([#1410](https://github.com/4DNucleome/PartSeg/pull/1410))
|
|
28
|
+
- Change default Qt versions from 5 to 6 ([#1412](https://github.com/4DNucleome/PartSeg/pull/1412))
|
|
29
|
+
- Remove `pyside2` from extras during constraints generation ([#1411](https://github.com/4DNucleome/PartSeg/pull/1411))
|
|
30
|
+
|
|
31
|
+
### 🛡️ Security
|
|
32
|
+
|
|
33
|
+
- *(deps)* Bump codecov/codecov-action from 5 to 6 ([#1379](https://github.com/4DNucleome/PartSeg/pull/1379))
|
|
34
|
+
- *(deps)* Bump github/codeql-action from 4 to 4.35.1 ([#1385](https://github.com/4DNucleome/PartSeg/pull/1385))
|
|
35
|
+
- *(deps)* Bump softprops/action-gh-release from 2 to 3 ([#1383](https://github.com/4DNucleome/PartSeg/pull/1383))
|
|
36
|
+
- *(deps)* Bump github/codeql-action from 4.35.1 to 4.35.2 ([#1390](https://github.com/4DNucleome/PartSeg/pull/1390))
|
|
37
|
+
- *(deps)* Bump conda-incubator/setup-miniconda from 3 to 3.3.0 ([#1388](https://github.com/4DNucleome/PartSeg/pull/1388))
|
|
38
|
+
|
|
39
|
+
### Build
|
|
40
|
+
|
|
41
|
+
- *(deps)* Bump astral-sh/setup-uv from 8.0.0 to 8.1.0 ([#1389](https://github.com/4DNucleome/PartSeg/pull/1389))
|
|
42
|
+
- *(deps)* Bump conda-incubator/setup-miniconda from 3.3.0 to 4.0.1 ([#1394](https://github.com/4DNucleome/PartSeg/pull/1394))
|
|
43
|
+
- *(deps)* Bump github/codeql-action from 4.35.2 to 4.36.0 ([#1401](https://github.com/4DNucleome/PartSeg/pull/1401))
|
|
44
|
+
- *(deps)* Bump actions/checkout from 6 to 6.0.2 in the github-actions group across 1 directory ([#1408](https://github.com/4DNucleome/PartSeg/pull/1408))
|
|
45
|
+
|
|
5
46
|
## 0.16.5 - 2026-03-24
|
|
6
47
|
|
|
7
48
|
### 🚀 Features
|
|
@@ -2,7 +2,7 @@ import json
|
|
|
2
2
|
import os
|
|
3
3
|
from contextlib import suppress
|
|
4
4
|
from copy import deepcopy
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import TypeAlias, cast
|
|
6
6
|
|
|
7
7
|
from qtpy.QtCore import QEvent, Qt, Slot
|
|
8
8
|
from qtpy.QtGui import QIcon
|
|
@@ -49,13 +49,13 @@ from PartSegCore.io_utils import LoadPlanJson
|
|
|
49
49
|
from PartSegCore.universal_const import UNIT_SCALE, Units
|
|
50
50
|
from PartSegData import icons_dir
|
|
51
51
|
|
|
52
|
-
_DialogType =
|
|
52
|
+
_DialogType: TypeAlias = type[str] | type[int] | type[float]
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
def h_line():
|
|
56
56
|
toto = QFrame()
|
|
57
|
-
toto.setFrameShape(QFrame.HLine)
|
|
58
|
-
toto.setFrameShadow(QFrame.Sunken)
|
|
57
|
+
toto.setFrameShape(QFrame.Shape.HLine)
|
|
58
|
+
toto.setFrameShadow(QFrame.Shadow.Sunken)
|
|
59
59
|
return toto
|
|
60
60
|
|
|
61
61
|
|
|
@@ -114,7 +114,7 @@ class Properties(QWidget):
|
|
|
114
114
|
def setup_ui(self):
|
|
115
115
|
spacing_layout = QHBoxLayout()
|
|
116
116
|
spacing_layout.addWidget(self.lock_spacing)
|
|
117
|
-
for txt, el in zip(["x", "y", "z"], self.spacing[::-1]):
|
|
117
|
+
for txt, el in zip(["x", "y", "z"], self.spacing[::-1], strict=False):
|
|
118
118
|
spacing_layout.addWidget(QLabel(f"{txt}:"))
|
|
119
119
|
spacing_layout.addWidget(el)
|
|
120
120
|
spacing_layout.addWidget(self.units)
|
|
@@ -200,7 +200,7 @@ class Properties(QWidget):
|
|
|
200
200
|
value = self.units.currentEnum()
|
|
201
201
|
if index is not None:
|
|
202
202
|
self._settings.set("units_value", value)
|
|
203
|
-
for el, sp in zip(self.spacing[::-1], self._settings.image_spacing[::-1]):
|
|
203
|
+
for el, sp in zip(self.spacing[::-1], self._settings.image_spacing[::-1], strict=False):
|
|
204
204
|
el.blockSignals(True)
|
|
205
205
|
current_size = sp * UNIT_SCALE[self.units.currentIndex()]
|
|
206
206
|
voxel_size *= current_size
|
|
@@ -353,7 +353,7 @@ class Properties(QWidget):
|
|
|
353
353
|
|
|
354
354
|
|
|
355
355
|
class MeasurementListWidgetItem(QListWidgetItem):
|
|
356
|
-
def __init__(self, stat:
|
|
356
|
+
def __init__(self, stat: Node | Leaf, *args, **kwargs):
|
|
357
357
|
super().__init__(stat.pretty_print(MEASUREMENT_DICT), *args, **kwargs)
|
|
358
358
|
self.stat = stat
|
|
359
359
|
|
|
@@ -365,8 +365,8 @@ class MeasurementSettings(QWidget):
|
|
|
365
365
|
|
|
366
366
|
def __init__(self, settings: PartSettings, parent=None): # noqa: PLR0915
|
|
367
367
|
super().__init__(parent)
|
|
368
|
-
self.chosen_element:
|
|
369
|
-
self.chosen_element_area:
|
|
368
|
+
self.chosen_element: MeasurementListWidgetItem | None = None
|
|
369
|
+
self.chosen_element_area: tuple[AreaType, float] | None = None
|
|
370
370
|
self.settings = settings
|
|
371
371
|
self.profile_list = QListWidget(self)
|
|
372
372
|
self.profile_description = QTextEdit(self)
|
|
@@ -640,8 +640,8 @@ class MeasurementSettings(QWidget):
|
|
|
640
640
|
return FormDialog(arguments, settings=self.settings, parent=self)
|
|
641
641
|
|
|
642
642
|
def get_parameters(
|
|
643
|
-
self, node:
|
|
644
|
-
) ->
|
|
643
|
+
self, node: Node | Leaf, area: AreaType, component: PerComponent, power: float
|
|
644
|
+
) -> Leaf | Node | None:
|
|
645
645
|
if isinstance(node, Node):
|
|
646
646
|
return node
|
|
647
647
|
node = node.replace_(power=power)
|
|
@@ -841,8 +841,8 @@ class MultipleInput(QDialog):
|
|
|
841
841
|
self,
|
|
842
842
|
text: str,
|
|
843
843
|
help_text: str = "",
|
|
844
|
-
objects_list:
|
|
845
|
-
parent:
|
|
844
|
+
objects_list: list[tuple[str, _DialogType] | tuple[str, _DialogType, str]] | None = None,
|
|
845
|
+
parent: QWidget | None = None,
|
|
846
846
|
):
|
|
847
847
|
if objects_list is None: # pragma: no cover
|
|
848
848
|
raise ValueError("objects_list cannot be None")
|
|
@@ -61,7 +61,7 @@ class SaveExcel(SaveBase):
|
|
|
61
61
|
@classmethod
|
|
62
62
|
def save(
|
|
63
63
|
cls,
|
|
64
|
-
save_location:
|
|
64
|
+
save_location: str | BytesIO | Path,
|
|
65
65
|
project_info,
|
|
66
66
|
parameters: dict,
|
|
67
67
|
range_changed=None,
|
|
@@ -74,7 +74,7 @@ class SaveExcel(SaveBase):
|
|
|
74
74
|
return "Excel (*.xlsx)"
|
|
75
75
|
|
|
76
76
|
@classmethod
|
|
77
|
-
def get_fields(cls) -> list[
|
|
77
|
+
def get_fields(cls) -> list[AlgorithmProperty | str]:
|
|
78
78
|
return []
|
|
79
79
|
|
|
80
80
|
|
|
@@ -381,7 +381,7 @@ class CalculationPrepare(QDialog):
|
|
|
381
381
|
measurement_file_path: os.PathLike,
|
|
382
382
|
settings: PartSettings,
|
|
383
383
|
batch_manager: CalculationManager,
|
|
384
|
-
parent:
|
|
384
|
+
parent: QWidget | None = None,
|
|
385
385
|
):
|
|
386
386
|
"""
|
|
387
387
|
:param file_list: list of files to proceed
|
{partseg-0.16.5 → partseg-0.17.0}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py
RENAMED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import typing
|
|
2
|
-
|
|
3
1
|
import numpy as np
|
|
4
2
|
|
|
5
3
|
from PartSeg.common_backend.progress_thread import ProgressTread
|
|
@@ -9,9 +7,16 @@ from PartSegImage import Image
|
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
class CalculatePipelineThread(ProgressTread):
|
|
12
|
-
result:
|
|
10
|
+
result: PipelineResult | None
|
|
11
|
+
|
|
12
|
+
def __init__(self, image: Image, mask: np.ndarray | None, pipeline: SegmentationPipeline, parent=None):
|
|
13
|
+
"""Class for running the segmentation pipeline in a separate thread.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
:param image: Image to process
|
|
16
|
+
:param mask: Mask to use for segmentation if None whole image is used
|
|
17
|
+
:param pipeline: Segmentation pipeline to use
|
|
18
|
+
:param parent: Parent widget
|
|
19
|
+
"""
|
|
15
20
|
super().__init__(parent=parent)
|
|
16
21
|
self.image = image
|
|
17
22
|
self.mask = mask
|
|
@@ -3,7 +3,6 @@ import logging
|
|
|
3
3
|
import os
|
|
4
4
|
import tarfile
|
|
5
5
|
import time
|
|
6
|
-
import typing
|
|
7
6
|
import zipfile
|
|
8
7
|
from contextlib import suppress
|
|
9
8
|
from pathlib import Path
|
|
@@ -48,7 +47,7 @@ class ExportProjectDialog(QDialog):
|
|
|
48
47
|
"""Export data for zenodo"""
|
|
49
48
|
|
|
50
49
|
def __init__(
|
|
51
|
-
self, excel_path: str, base_folder: str, settings: PartSettings, parent:
|
|
50
|
+
self, excel_path: str, base_folder: str, settings: PartSettings, parent: QWidget | None = None
|
|
52
51
|
) -> None:
|
|
53
52
|
super().__init__(parent=parent)
|
|
54
53
|
self.setWindowTitle("Export batch with data")
|
|
@@ -307,7 +306,7 @@ class ExportProjectDialog(QDialog):
|
|
|
307
306
|
|
|
308
307
|
|
|
309
308
|
def _extract_information_from_excel_to_export(
|
|
310
|
-
excel_path:
|
|
309
|
+
excel_path: str | Path, base_folder: str | Path
|
|
311
310
|
) -> list[tuple[str, bool]]:
|
|
312
311
|
"""Extract information from Excel file to export"""
|
|
313
312
|
file_list = []
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import contextlib
|
|
2
|
-
from typing import Optional
|
|
3
2
|
|
|
4
3
|
from qtpy.QtCore import QObject, QSignalBlocker, Slot
|
|
5
4
|
from qtpy.QtGui import QResizeEvent
|
|
@@ -80,7 +79,7 @@ class ResultImageView(ImageView):
|
|
|
80
79
|
|
|
81
80
|
@Slot()
|
|
82
81
|
@Slot(ROIInfo)
|
|
83
|
-
def set_roi(self, roi_info:
|
|
82
|
+
def set_roi(self, roi_info: ROIInfo | None = None, image: Image | None = None) -> None:
|
|
84
83
|
super().set_roi(roi_info, image)
|
|
85
84
|
show = self.any_roi()
|
|
86
85
|
self.label1.setVisible(show)
|
|
@@ -89,7 +89,7 @@ class MeasurementsStorage:
|
|
|
89
89
|
values = data.get_separated()
|
|
90
90
|
units = data.get_units()
|
|
91
91
|
else:
|
|
92
|
-
values, units = zip(*list(data.values()))
|
|
92
|
+
values, units = zip(*list(data.values()), strict=True)
|
|
93
93
|
values = [values]
|
|
94
94
|
self.max_rows = max(self.max_rows, len(values[0]))
|
|
95
95
|
self.content.extend(values)
|
|
@@ -97,7 +97,7 @@ class PartSettings(BaseSettings):
|
|
|
97
97
|
points=self.points,
|
|
98
98
|
)
|
|
99
99
|
|
|
100
|
-
def set_project_info(self, data:
|
|
100
|
+
def set_project_info(self, data: ProjectTuple | MaskInfo | PointsInfo):
|
|
101
101
|
if isinstance(data, MaskInfo):
|
|
102
102
|
self.mask = data.mask_array
|
|
103
103
|
return
|
|
@@ -264,7 +264,7 @@ class MaskOperation(Enum):
|
|
|
264
264
|
|
|
265
265
|
|
|
266
266
|
class ProtectedGroupBox(QGroupBox):
|
|
267
|
-
def __init__(self, text: str, parent:
|
|
267
|
+
def __init__(self, text: str, parent: QWidget | None = None):
|
|
268
268
|
super().__init__(text, parent)
|
|
269
269
|
self.setStyleSheet(group_sheet)
|
|
270
270
|
self.protect = False
|
|
@@ -272,7 +272,7 @@ class ProtectedGroupBox(QGroupBox):
|
|
|
272
272
|
self._parent_node_type = None
|
|
273
273
|
self._replace = False
|
|
274
274
|
|
|
275
|
-
def set_current_node(self, node:
|
|
275
|
+
def set_current_node(self, node: NodeType | None, parent_node: NodeType | None = None):
|
|
276
276
|
self._node_type = node
|
|
277
277
|
self._parent_node_type = parent_node
|
|
278
278
|
self._activate_button()
|
|
@@ -294,7 +294,7 @@ class ProtectedGroupBox(QGroupBox):
|
|
|
294
294
|
self.protect = previous
|
|
295
295
|
|
|
296
296
|
@classmethod
|
|
297
|
-
def refresh_profiles(cls, list_widget:
|
|
297
|
+
def refresh_profiles(cls, list_widget: QListWidget | SearchableListWidget, new_values: list[str]):
|
|
298
298
|
index = cls.get_index(list_widget.currentItem(), new_values)
|
|
299
299
|
list_widget.clear()
|
|
300
300
|
list_widget.addItems(new_values)
|
|
@@ -357,7 +357,7 @@ class OtherOperations(ProtectedGroupBox):
|
|
|
357
357
|
self._activate_button()
|
|
358
358
|
|
|
359
359
|
@property
|
|
360
|
-
def expected_node_type(self) ->
|
|
360
|
+
def expected_node_type(self) -> NodeType | None:
|
|
361
361
|
save_class = self.save_translate_dict.get(self.choose_save_method.currentText(), None)
|
|
362
362
|
if save_class is None:
|
|
363
363
|
return None
|
|
@@ -406,7 +406,7 @@ class ROIExtractionOp(ProtectedGroupBox):
|
|
|
406
406
|
roi_extraction_profile_add = Signal(object)
|
|
407
407
|
roi_extraction_pipeline_add = Signal(object)
|
|
408
408
|
|
|
409
|
-
def __init__(self, settings: PartSettings, parent:
|
|
409
|
+
def __init__(self, settings: PartSettings, parent: QWidget | None = None):
|
|
410
410
|
super().__init__("ROI extraction", parent)
|
|
411
411
|
self.settings = settings
|
|
412
412
|
|
|
@@ -511,7 +511,7 @@ class SelectMeasurementOp(ProtectedGroupBox):
|
|
|
511
511
|
set_of_measurement_add = Signal(object)
|
|
512
512
|
set_of_measurement_selected = Signal(object)
|
|
513
513
|
|
|
514
|
-
def __init__(self, settings: PartSettings, parent:
|
|
514
|
+
def __init__(self, settings: PartSettings, parent: QWidget | None = None):
|
|
515
515
|
super().__init__("Set of measurements:", parent)
|
|
516
516
|
self.settings = settings
|
|
517
517
|
|
|
@@ -589,7 +589,7 @@ class SelectMeasurementOp(ProtectedGroupBox):
|
|
|
589
589
|
|
|
590
590
|
|
|
591
591
|
class StretchWrap(QWidget):
|
|
592
|
-
def __init__(self, widget: QWidget, parent:
|
|
592
|
+
def __init__(self, widget: QWidget, parent: QWidget | None = None):
|
|
593
593
|
super().__init__(parent)
|
|
594
594
|
self.widget = widget
|
|
595
595
|
lay = QVBoxLayout()
|
|
@@ -605,7 +605,7 @@ class StretchWrap(QWidget):
|
|
|
605
605
|
class SelectMaskOp(ProtectedGroupBox):
|
|
606
606
|
mask_step_add = Signal(object)
|
|
607
607
|
|
|
608
|
-
def __init__(self, settings: PartSettings, parent:
|
|
608
|
+
def __init__(self, settings: PartSettings, parent: QWidget | None = None):
|
|
609
609
|
super().__init__("Use mask from:", parent)
|
|
610
610
|
self.settings = settings
|
|
611
611
|
self.mask_set = {}
|
|
@@ -910,7 +910,7 @@ class CreatePlan(QWidget):
|
|
|
910
910
|
self.settings.batch_plans[text] = plan
|
|
911
911
|
self.settings.dump()
|
|
912
912
|
|
|
913
|
-
def show_info(self, item:
|
|
913
|
+
def show_info(self, item: ROIExtractionOp | SegmentationPipeline | MeasurementProfile):
|
|
914
914
|
if isinstance(item, (ROIExtractionOp, MeasurementProfile)):
|
|
915
915
|
self.information.setText(str(item))
|
|
916
916
|
else:
|
|
@@ -156,8 +156,8 @@ class ImportDialog(QDialog):
|
|
|
156
156
|
import_dict: dict[str, typing.Any],
|
|
157
157
|
local_dict: dict[str, typing.Any],
|
|
158
158
|
viewer: type[ObjectPreviewProtocol],
|
|
159
|
-
expected_type:
|
|
160
|
-
parent:
|
|
159
|
+
expected_type: type | None = None,
|
|
160
|
+
parent: QWidget | None = None,
|
|
161
161
|
):
|
|
162
162
|
"""
|
|
163
163
|
:param import_dict: dict with data to import
|
|
@@ -3,7 +3,7 @@ import re
|
|
|
3
3
|
from functools import partial
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from queue import Queue
|
|
6
|
-
from typing import TYPE_CHECKING, NamedTuple,
|
|
6
|
+
from typing import TYPE_CHECKING, NamedTuple, cast
|
|
7
7
|
|
|
8
8
|
from pydantic import BaseModel
|
|
9
9
|
from qtpy.QtCore import QThread, Signal
|
|
@@ -19,9 +19,9 @@ if TYPE_CHECKING:
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class BatchTask(NamedTuple):
|
|
22
|
-
data:
|
|
22
|
+
data: str | MaskProjectTuple
|
|
23
23
|
parameters: ROIExtractionProfile
|
|
24
|
-
save_prefix:
|
|
24
|
+
save_prefix: tuple[str | Path, dict | BaseModel] | None
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class BatchProceed(QThread):
|
|
@@ -42,7 +42,7 @@ class BatchProceed(QThread):
|
|
|
42
42
|
self.result_dir = ""
|
|
43
43
|
self.save_parameters = {}
|
|
44
44
|
|
|
45
|
-
def add_task(self, task:
|
|
45
|
+
def add_task(self, task: BatchTask | list[BatchTask]):
|
|
46
46
|
if isinstance(task, list):
|
|
47
47
|
for el in task:
|
|
48
48
|
self.queue.put(el)
|
|
@@ -2,7 +2,6 @@ import os
|
|
|
2
2
|
from collections.abc import Sequence
|
|
3
3
|
from contextlib import suppress
|
|
4
4
|
from functools import partial
|
|
5
|
-
from typing import Union
|
|
6
5
|
|
|
7
6
|
import numpy as np
|
|
8
7
|
from qtpy.QtCore import QByteArray, Qt, Signal, Slot
|
|
@@ -461,7 +460,7 @@ class ChosenComponents(QScrollArea):
|
|
|
461
460
|
def new_choose(self, num: int, chosen_components: Sequence[int]) -> None:
|
|
462
461
|
self.set_components(range(1, num + 1), chosen_components)
|
|
463
462
|
|
|
464
|
-
def set_components(self, components_index, chosen_components:
|
|
463
|
+
def set_components(self, components_index, chosen_components: Sequence[int] | None = None):
|
|
465
464
|
if chosen_components is None:
|
|
466
465
|
chosen_components = []
|
|
467
466
|
chosen_components = set(chosen_components)
|
|
@@ -872,7 +871,7 @@ class ImageInformation(QWidget):
|
|
|
872
871
|
units_value = self.units.currentEnum()
|
|
873
872
|
if index is not None:
|
|
874
873
|
self._settings.set("units_value", units_value)
|
|
875
|
-
for el, val in zip(self.spacing, self._settings.image_spacing[::-1]):
|
|
874
|
+
for el, val in zip(self.spacing, self._settings.image_spacing[::-1], strict=False):
|
|
876
875
|
el.blockSignals(True)
|
|
877
876
|
el.setValue(val * UNIT_SCALE[units_value.value])
|
|
878
877
|
el.blockSignals(False)
|
|
@@ -890,7 +889,7 @@ class ImageInformation(QWidget):
|
|
|
890
889
|
|
|
891
890
|
def showEvent(self, _a0):
|
|
892
891
|
units_value = self._settings.get("units_value", Units.nm)
|
|
893
|
-
for el, val in zip(self.spacing, self._settings.image_spacing[::-1]):
|
|
892
|
+
for el, val in zip(self.spacing, self._settings.image_spacing[::-1], strict=True):
|
|
894
893
|
el.setValue(val * UNIT_SCALE[units_value.value])
|
|
895
894
|
if self._settings.is_image_2d():
|
|
896
895
|
self.spacing[2].setValue(0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from
|
|
1
|
+
from collections.abc import Callable
|
|
2
2
|
|
|
3
3
|
from qtpy.QtCore import QEvent
|
|
4
4
|
from qtpy.QtWidgets import QGridLayout, QLabel, QListWidget, QPlainTextEdit, QPushButton, QWidget
|
|
@@ -45,7 +45,7 @@ class SegmentationInfoDialog(QWidget):
|
|
|
45
45
|
self.setLayout(layout)
|
|
46
46
|
self.setWindowTitle("Parameters preview")
|
|
47
47
|
|
|
48
|
-
def set_parameters_dict(self, val:
|
|
48
|
+
def set_parameters_dict(self, val: dict[int, ROIExtractionProfile] | None):
|
|
49
49
|
self.parameters_dict = val
|
|
50
50
|
|
|
51
51
|
def set_additional_text(self, text):
|
|
@@ -140,7 +140,7 @@ class StackSettings(BaseSettings):
|
|
|
140
140
|
points=self.points,
|
|
141
141
|
)
|
|
142
142
|
|
|
143
|
-
def set_project_info(self, data:
|
|
143
|
+
def set_project_info(self, data: MaskProjectTuple | PointsInfo):
|
|
144
144
|
"""signals = self.signalsBlocked()
|
|
145
145
|
if data.segmentation is not None:
|
|
146
146
|
self.blockSignals(True)"""
|
|
@@ -200,7 +200,7 @@ class StackSettings(BaseSettings):
|
|
|
200
200
|
cls,
|
|
201
201
|
state: MaskProjectTuple,
|
|
202
202
|
new_roi_info: ROIInfo,
|
|
203
|
-
new_roi_extraction_parameters: dict[int,
|
|
203
|
+
new_roi_extraction_parameters: dict[int, ROIExtractionProfile | None],
|
|
204
204
|
list_of_components: list[int],
|
|
205
205
|
save_chosen: bool = True,
|
|
206
206
|
) -> MaskProjectTuple:
|
|
@@ -285,7 +285,7 @@ class StackSettings(BaseSettings):
|
|
|
285
285
|
return False
|
|
286
286
|
return not any(
|
|
287
287
|
el2.mask_property != el1.mask_property or el2.roi_extraction_parameters != el1.roi_extraction_parameters
|
|
288
|
-
for el1, el2 in zip(self.history, history)
|
|
288
|
+
for el1, el2 in zip(self.history, history, strict=True)
|
|
289
289
|
)
|
|
290
290
|
|
|
291
291
|
def _set_roi_info(
|
|
@@ -319,9 +319,7 @@ class StackSettings(BaseSettings):
|
|
|
319
319
|
self.chosen_components_widget.blockSignals(prev)
|
|
320
320
|
|
|
321
321
|
|
|
322
|
-
def get_mask(
|
|
323
|
-
segmentation: typing.Optional[np.ndarray], mask: typing.Optional[np.ndarray], selected: list[int]
|
|
324
|
-
) -> np.ndarray:
|
|
322
|
+
def get_mask(segmentation: np.ndarray | None, mask: np.ndarray | None, selected: list[int]) -> np.ndarray:
|
|
325
323
|
"""
|
|
326
324
|
Calculate mask base on segmentation, current mask and list of chosen components.
|
|
327
325
|
Its exclude selected components from mask.
|