PartSeg 0.15.4b4__tar.gz → 0.15.4b5__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.4b4 → partseg-0.15.4b5}/PKG-INFO +5 -5
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/algorithms_description.py +6 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/launcher_main.py +12 -9
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/version.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg.egg-info/PKG-INFO +5 -5
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/algorithm_describe_base.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/threshold.py +2 -2
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegImage/image_reader.py +5 -3
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegImage/tifffile_fixes.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/conftest.py +20 -20
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/conftest.py +11 -5
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_batch.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +2 -2
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +4 -4
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +4 -4
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_mask/test_batch.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_mask/test_main_window.py +4 -4
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_analysis.py +8 -8
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_base_widgets.py +3 -3
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_channel_control.py +6 -6
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_check_release.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_common_backend.py +2 -2
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_common_gui.py +26 -14
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_main_windows.py +6 -6
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_napari_image_view.py +7 -7
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_napari_widgets.py +9 -9
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_roi_analysis_batch.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_sentry.py +17 -4
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_settings.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_viewer.py +3 -3
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_analysis_batch.py +14 -14
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_io.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_measurements.py +2 -2
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_napari_plugins.py +1 -1
- {partseg-0.15.4b4 → partseg-0.15.4b5}/pyproject.toml +1 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.10.txt +30 -29
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.10_pydantic_1.txt +26 -27
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.11.txt +32 -31
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.11_docs.txt +32 -53
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.11_pydantic_1.txt +28 -29
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.12.txt +30 -29
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.12_pydantic_1.txt +26 -27
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.8.txt +22 -26
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.8_pydantic_1.txt +21 -25
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.9.txt +26 -25
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/constraints_py3.9_pydantic_1.txt +22 -23
- {partseg-0.15.4b4 → partseg-0.15.4b5}/.napari/DESCRIPTION.md +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/.napari/config.yml +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/CITATION.cff +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/License.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/MANIFEST.in +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/Readme.md +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/changelog.md +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/__main__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_launcher/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_launcher/check_survey.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_launcher/check_version.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_launcher/main_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/image_view.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/main_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/image_view.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/main_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/_roi_mask/stack_settings.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/changelog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/abstract_class.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/base_argparser.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/base_settings.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/except_hook.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/load_backup.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/progress_thread.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/about_dialog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/advanced_tabs.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/channel_control.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/colormap_creator.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/custom_buttons.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/custom_save_dialog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/dict_viewer.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/error_report.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/exception_hooks.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/flow_layout.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/icon_selector.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/image_adjustment.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/label_create.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/main_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/mask_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/napari_image_view.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/qt_console.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/qt_modal.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/qt_util.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/select_multiple_files.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/stack_image_view.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/napari.yaml +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/itk_snap_save/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/modeling_save/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/lables_control.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/napari_widgets/utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/old_partseg/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg/state_store.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg.egg-info/SOURCES.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg.egg-info/dependency_links.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg.egg-info/entry_points.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg.egg-info/requires.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSeg.egg-info/top_level.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/_old_json_hooks.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/algorithm_description.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/analysis_utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/batch_processing/batch_backend.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/calculation_plan.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/io_utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/load_functions.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/measurement_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/measurement_calculation.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/analysis/save_functions.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/autofit.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/channel_class.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/class_generator.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/color_image/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/color_image/base_colors.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/color_image/color_data.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/convex_fill.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/custom_name_generate.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_operations.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_transforming/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_transforming/image_projection.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/image_transforming/transform_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/io_utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/json_hooks.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/mask/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/mask/algorithm_description.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/mask/history_utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/mask/io_functions.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/mask_create.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/mask_partition_utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/load_image.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/load_mask_project.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/load_masked_image.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/load_roi_project.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/loader.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/save_mask_roi.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/napari_plugins/save_tiff_layer.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/plugins/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/project_info.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/register.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/roi_info.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/segmentation/watershed.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/sphinx/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/universal_const.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegCore/utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegImage/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegImage/channel_class.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegImage/image.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/PartSegImage/image_writer.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_check_survey.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_io.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_label_choose.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_launcher.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/test_window_import.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_base.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_class_generator.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_class_register.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_image_adjustment.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_json_hooks.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_mask_create.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_min_req.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_mso.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_segmentation.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_smooth.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegCore/test_utils.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegImage/__init__.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegImage/test_image.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSegImage/test_image_writer.py +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/measurements_profile.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/napari_measurements_profile.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/notebook/segment_data.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/ome.xsd.xml +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/problematic_json_batch.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/problematic_profile_dict.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/range_profile.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/sample_batch_output.xlsx +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_data/workflow.json +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/dependabot_runtime.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/pre_test_problematic_version.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/pydantic_1.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/requirements_ci.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/requirements_dev.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/requirements_test.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/requirements/version_denylist.txt +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/setup.cfg +0 -0
- {partseg-0.15.4b4 → partseg-0.15.4b5}/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.4b5
|
|
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
|
|
@@ -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.4b5/PartSeg-0.15.4b5-windows.zip) (build on Windows 10)
|
|
153
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b5/PartSeg-0.15.4b5-linux.zip) (build on Ubuntu 20.04)
|
|
154
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b5/PartSeg-0.15.4b5-macos.zip) (build on macOS 13)
|
|
155
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b5/PartSeg-0.15.4b5-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:
|
|
@@ -599,7 +599,12 @@ class SubAlgorithmWidget(QWidget):
|
|
|
599
599
|
|
|
600
600
|
def paintEvent(self, event: QPaintEvent):
|
|
601
601
|
name = self.choose.currentText()
|
|
602
|
-
if
|
|
602
|
+
if (
|
|
603
|
+
name in self.widgets_dict
|
|
604
|
+
and self.widgets_dict[name].has_elements()
|
|
605
|
+
and event.rect().top() == 0
|
|
606
|
+
and event.rect().left() == 0
|
|
607
|
+
):
|
|
603
608
|
painter = QPainter(self)
|
|
604
609
|
painter.drawRect(self.rect() - QMargins(1, -1, 1, 1))
|
|
605
610
|
|
|
@@ -46,15 +46,18 @@ def _test_imports(): # pragma: no cover
|
|
|
46
46
|
w1 = AnalysisMain("test")
|
|
47
47
|
w2 = MaskMain("test")
|
|
48
48
|
w3 = MainWindow("test")
|
|
49
|
-
|
|
49
|
+
v = napari.Viewer()
|
|
50
|
+
console = QtConsole(v)
|
|
50
51
|
label = LabelChoose(w1.settings)
|
|
51
52
|
label.refresh()
|
|
52
|
-
|
|
53
|
-
del
|
|
54
|
-
del
|
|
55
|
-
del
|
|
56
|
-
del
|
|
57
|
-
del
|
|
53
|
+
v.close()
|
|
54
|
+
del label # skipcq: PTC-W0043
|
|
55
|
+
del w1 # skipcq: PTC-W0043
|
|
56
|
+
del w2 # skipcq: PTC-W0043
|
|
57
|
+
del w3 # skipcq: PTC-W0043
|
|
58
|
+
del v # skipcq: PTC-W0043
|
|
59
|
+
del app # skipcq: PTC-W0043
|
|
60
|
+
del console # skipcq: PTC-W0043
|
|
58
61
|
print("end_test_import")
|
|
59
62
|
|
|
60
63
|
|
|
@@ -142,8 +145,8 @@ def main(): # pragma: no cover # noqa: PLR0915
|
|
|
142
145
|
check_survey.start()
|
|
143
146
|
wind.show()
|
|
144
147
|
rc = my_app.exec_()
|
|
145
|
-
del wind # skipcq: PTC-W0043
|
|
146
|
-
del my_app # skipcq: PTC-W0043
|
|
148
|
+
del wind # skipcq: PTC-W0043
|
|
149
|
+
del my_app # skipcq: PTC-W0043
|
|
147
150
|
sys.exit(rc)
|
|
148
151
|
|
|
149
152
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PartSeg
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.4b5
|
|
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
|
|
@@ -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.4b5/PartSeg-0.15.4b5-windows.zip) (build on Windows 10)
|
|
153
|
+
- [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b5/PartSeg-0.15.4b5-linux.zip) (build on Ubuntu 20.04)
|
|
154
|
+
- [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b5/PartSeg-0.15.4b5-macos.zip) (build on macOS 13)
|
|
155
|
+
- [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b5/PartSeg-0.15.4b5-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:
|
|
@@ -84,7 +84,7 @@ class AlgorithmProperty:
|
|
|
84
84
|
else:
|
|
85
85
|
self.value_type = type(default_value)
|
|
86
86
|
self.default_value = default_value
|
|
87
|
-
self.range = options_range
|
|
87
|
+
self.range = tuple(self.value_type(x) for x in options_range) if options_range is not None else None
|
|
88
88
|
self.possible_values = possible_values
|
|
89
89
|
self.help_text = help_text
|
|
90
90
|
self.per_dimension = per_dimension
|
|
@@ -413,8 +413,8 @@ class MaximumDistanceWatershedParams(BaseModel):
|
|
|
413
413
|
minimum_border_distance: int = Field(
|
|
414
414
|
10,
|
|
415
415
|
title="Border Radius",
|
|
416
|
-
ge=0
|
|
417
|
-
le=100
|
|
416
|
+
ge=0,
|
|
417
|
+
le=100,
|
|
418
418
|
description="Minimum distance of local maxima from the border. To avoid artifacts",
|
|
419
419
|
)
|
|
420
420
|
|
|
@@ -358,9 +358,11 @@ class CziImageReader(BaseImageReaderBuffer):
|
|
|
358
358
|
scale_info.get("Y", self.default_spacing[1]),
|
|
359
359
|
scale_info.get("X", self.default_spacing[2]),
|
|
360
360
|
)
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
channel_meta = metadata["ImageDocument"]["Metadata"]["DisplaySetting"]["Channels"]["Channel"]
|
|
362
|
+
if isinstance(channel_meta, dict):
|
|
363
|
+
# single channel saved in czifile
|
|
364
|
+
channel_meta = [channel_meta]
|
|
365
|
+
self.channel_names = [x["Name"] for x in channel_meta]
|
|
364
366
|
# TODO add mask reading
|
|
365
367
|
if isinstance(image_path, BytesIO):
|
|
366
368
|
image_path = ""
|
|
@@ -19,7 +19,7 @@ if tifffile.tifffile.TiffPage.__module__ != "PartSegImage.tifffile_fixes":
|
|
|
19
19
|
self.parent.report_func()
|
|
20
20
|
return res
|
|
21
21
|
|
|
22
|
-
def _dummy_report_func(self):
|
|
22
|
+
def _dummy_report_func(self):
|
|
23
23
|
"""dummy function for report_func"""
|
|
24
24
|
|
|
25
25
|
TiffFile.report_func = _dummy_report_func
|
|
@@ -45,7 +45,7 @@ def bundle_test_dir():
|
|
|
45
45
|
return Path(os.path.join(os.path.dirname(__file__), "test_data"))
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
@pytest.fixture
|
|
48
|
+
@pytest.fixture
|
|
49
49
|
def image(tmp_path):
|
|
50
50
|
data = np.zeros([20, 20, 20, 2], dtype=np.uint16)
|
|
51
51
|
data[10:-1, 1:-1, 1:-1, 0] = 20
|
|
@@ -56,7 +56,7 @@ def image(tmp_path):
|
|
|
56
56
|
return Image(data, (10**-3, 10**-3, 10**-3), axes_order="ZYXC", file_path=str(tmp_path / "test.tiff"))
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
@pytest.fixture
|
|
59
|
+
@pytest.fixture
|
|
60
60
|
def image2(image, tmp_path):
|
|
61
61
|
data = np.zeros([20, 20, 20, 1], dtype=np.uint8)
|
|
62
62
|
data[10:-1, 1:-1, 1:-1, 0] = 20
|
|
@@ -65,14 +65,14 @@ def image2(image, tmp_path):
|
|
|
65
65
|
return img
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
@pytest.fixture
|
|
68
|
+
@pytest.fixture
|
|
69
69
|
def image2d(tmp_path):
|
|
70
70
|
data = np.zeros([20, 20], dtype=np.uint8)
|
|
71
71
|
data[10:-1, 1:-1] = 20
|
|
72
72
|
return Image(data, (10**-3, 10**-3), axes_order="YX", file_path=str(tmp_path / "test.tiff"))
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
@pytest.fixture
|
|
75
|
+
@pytest.fixture
|
|
76
76
|
def stack_image():
|
|
77
77
|
data = np.zeros([20, 40, 40, 2], dtype=np.uint8)
|
|
78
78
|
for x, y in itertools.product([0, 20], repeat=2):
|
|
@@ -85,7 +85,7 @@ def stack_image():
|
|
|
85
85
|
return MaskProjectTuple("test_path", Image(data, (2, 1, 1), axes_order="ZYXC", file_path="test_path"))
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
@pytest.fixture
|
|
88
|
+
@pytest.fixture
|
|
89
89
|
def algorithm_parameters():
|
|
90
90
|
algorithm_parameters = {
|
|
91
91
|
"algorithm_name": "Lower threshold",
|
|
@@ -100,7 +100,7 @@ def algorithm_parameters():
|
|
|
100
100
|
return deepcopy(algorithm_parameters)
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
@pytest.fixture
|
|
103
|
+
@pytest.fixture
|
|
104
104
|
def roi_extraction_profile():
|
|
105
105
|
return ROIExtractionProfile(
|
|
106
106
|
name="test",
|
|
@@ -109,7 +109,7 @@ def roi_extraction_profile():
|
|
|
109
109
|
)
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
@pytest.fixture
|
|
112
|
+
@pytest.fixture
|
|
113
113
|
def mask_segmentation_parameters():
|
|
114
114
|
return ROIExtractionProfile(
|
|
115
115
|
name="",
|
|
@@ -128,7 +128,7 @@ def mask_segmentation_parameters():
|
|
|
128
128
|
)
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
@pytest.fixture
|
|
131
|
+
@pytest.fixture
|
|
132
132
|
def stack_segmentation1(stack_image: MaskProjectTuple, mask_segmentation_parameters):
|
|
133
133
|
data = np.zeros([20, 40, 40], dtype=np.uint8)
|
|
134
134
|
for i, (x, y) in enumerate(itertools.product([0, 20], repeat=2), start=1):
|
|
@@ -140,7 +140,7 @@ def stack_segmentation1(stack_image: MaskProjectTuple, mask_segmentation_paramet
|
|
|
140
140
|
)
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
@pytest.fixture
|
|
143
|
+
@pytest.fixture
|
|
144
144
|
def analysis_segmentation(stack_image: MaskProjectTuple):
|
|
145
145
|
data = np.zeros([20, 40, 40], dtype=np.uint8)
|
|
146
146
|
for i, (x, y) in enumerate(itertools.product([0, 20], repeat=2), start=1):
|
|
@@ -149,13 +149,13 @@ def analysis_segmentation(stack_image: MaskProjectTuple):
|
|
|
149
149
|
return ProjectTuple(file_path=stack_image.file_path, image=stack_image.image, roi_info=data)
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
@pytest.fixture
|
|
152
|
+
@pytest.fixture
|
|
153
153
|
def analysis_segmentation2(analysis_segmentation: ProjectTuple):
|
|
154
154
|
mask = (analysis_segmentation.roi_info.roi > 0).astype(np.uint8)
|
|
155
155
|
return dataclasses.replace(analysis_segmentation, mask=mask)
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
@pytest.fixture
|
|
158
|
+
@pytest.fixture
|
|
159
159
|
def stack_segmentation2(stack_image: MaskProjectTuple, mask_segmentation_parameters):
|
|
160
160
|
data = np.zeros([20, 40, 40], dtype=np.uint8)
|
|
161
161
|
for i, (x, y) in enumerate(itertools.product([0, 20], repeat=2), start=1):
|
|
@@ -168,12 +168,12 @@ def stack_segmentation2(stack_image: MaskProjectTuple, mask_segmentation_paramet
|
|
|
168
168
|
)
|
|
169
169
|
|
|
170
170
|
|
|
171
|
-
@pytest.fixture
|
|
171
|
+
@pytest.fixture
|
|
172
172
|
def mask_property():
|
|
173
173
|
return MaskProperty.simple_mask()
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
@pytest.fixture
|
|
176
|
+
@pytest.fixture
|
|
177
177
|
def mask_property_non_default():
|
|
178
178
|
return MaskProperty(
|
|
179
179
|
dilate=RadiusType.R2D,
|
|
@@ -186,7 +186,7 @@ def mask_property_non_default():
|
|
|
186
186
|
)
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
@pytest.fixture
|
|
189
|
+
@pytest.fixture
|
|
190
190
|
def measurement_profiles():
|
|
191
191
|
statistics = [
|
|
192
192
|
MeasurementEntry(
|
|
@@ -221,14 +221,14 @@ def measurement_profiles():
|
|
|
221
221
|
)
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
@pytest.fixture
|
|
224
|
+
@pytest.fixture
|
|
225
225
|
def border_rim_profile():
|
|
226
226
|
return ROIExtractionProfile(
|
|
227
227
|
name="border_profile", algorithm=BorderRim.get_name(), values=BorderRim.get_default_values()
|
|
228
228
|
)
|
|
229
229
|
|
|
230
230
|
|
|
231
|
-
@pytest.fixture
|
|
231
|
+
@pytest.fixture
|
|
232
232
|
def lower_threshold_profile():
|
|
233
233
|
return ROIExtractionProfile(
|
|
234
234
|
name="lower_profile",
|
|
@@ -237,7 +237,7 @@ def lower_threshold_profile():
|
|
|
237
237
|
)
|
|
238
238
|
|
|
239
239
|
|
|
240
|
-
@pytest.fixture
|
|
240
|
+
@pytest.fixture
|
|
241
241
|
def mask_threshold_profile():
|
|
242
242
|
return ROIExtractionProfile(
|
|
243
243
|
name="mask_profile",
|
|
@@ -246,7 +246,7 @@ def mask_threshold_profile():
|
|
|
246
246
|
)
|
|
247
247
|
|
|
248
248
|
|
|
249
|
-
@pytest.fixture
|
|
249
|
+
@pytest.fixture
|
|
250
250
|
def sample_pipeline(border_rim_profile, lower_threshold_profile, mask_property):
|
|
251
251
|
return SegmentationPipeline(
|
|
252
252
|
name="sample_pipeline",
|
|
@@ -255,7 +255,7 @@ def sample_pipeline(border_rim_profile, lower_threshold_profile, mask_property):
|
|
|
255
255
|
)
|
|
256
256
|
|
|
257
257
|
|
|
258
|
-
@pytest.fixture
|
|
258
|
+
@pytest.fixture
|
|
259
259
|
def sample_pipeline2(border_rim_profile, lower_threshold_profile, mask_property):
|
|
260
260
|
return SegmentationPipeline(
|
|
261
261
|
name="sample_pipeline2",
|
|
@@ -264,7 +264,7 @@ def sample_pipeline2(border_rim_profile, lower_threshold_profile, mask_property)
|
|
|
264
264
|
)
|
|
265
265
|
|
|
266
266
|
|
|
267
|
-
@pytest.fixture
|
|
267
|
+
@pytest.fixture
|
|
268
268
|
def history_element(image, lower_threshold_profile):
|
|
269
269
|
roi = np.zeros(image.shape, dtype=np.uint8)
|
|
270
270
|
roi[0, 2:10] = 1
|
|
@@ -11,14 +11,14 @@ from PartSeg.common_backend.base_settings import BaseSettings
|
|
|
11
11
|
from PartSeg.common_gui import napari_image_view
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
@pytest.fixture
|
|
14
|
+
@pytest.fixture
|
|
15
15
|
def base_settings(image, tmp_path, measurement_profiles):
|
|
16
16
|
settings = BaseSettings(tmp_path)
|
|
17
17
|
settings.image = image
|
|
18
18
|
return settings
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
@pytest.fixture
|
|
21
|
+
@pytest.fixture
|
|
22
22
|
def part_settings(image, tmp_path, measurement_profiles):
|
|
23
23
|
settings = PartSettings(tmp_path)
|
|
24
24
|
settings.image = image
|
|
@@ -27,7 +27,7 @@ def part_settings(image, tmp_path, measurement_profiles):
|
|
|
27
27
|
return settings
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
@pytest.fixture
|
|
30
|
+
@pytest.fixture
|
|
31
31
|
def stack_settings(tmp_path, image):
|
|
32
32
|
settings = StackSettings(tmp_path)
|
|
33
33
|
settings.image = image
|
|
@@ -37,7 +37,7 @@ def stack_settings(tmp_path, image):
|
|
|
37
37
|
chose.deleteLater()
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
@pytest.fixture
|
|
40
|
+
@pytest.fixture
|
|
41
41
|
def part_settings_with_project(image, analysis_segmentation2, tmp_path):
|
|
42
42
|
settings = PartSettings(tmp_path)
|
|
43
43
|
settings.image = image
|
|
@@ -62,7 +62,7 @@ def _disable_threads_viewer_patch_add_layer(monkeypatch, request):
|
|
|
62
62
|
if layer not in self.viewer.layers:
|
|
63
63
|
self.viewer.add_layer(layer)
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
monkeypatch.setattr(napari_image_view.ImageView, "_add_layer_util", _add_layer_util)
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
@pytest.fixture(autouse=True)
|
|
@@ -173,3 +173,9 @@ def _mock_throttler(monkeypatch):
|
|
|
173
173
|
|
|
174
174
|
if hasattr(qt_main_window, "QSignalThrottler"):
|
|
175
175
|
monkeypatch.setattr(qt_main_window, "QSignalThrottler", DummyThrottler)
|
|
176
|
+
with contextlib.suppress(ImportError):
|
|
177
|
+
monkeypatch.setattr(
|
|
178
|
+
"napari._qt.threads.status_checker.StatusChecker.start",
|
|
179
|
+
lambda x: None,
|
|
180
|
+
raising=False,
|
|
181
|
+
)
|
|
@@ -5,7 +5,7 @@ from PartSegCore.analysis.batch_processing.batch_backend import CalculationManag
|
|
|
5
5
|
from PartSegCore.analysis.calculation_plan import CalculationPlan, CalculationTree, MaskSuffix, RootType
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
@pytest.fixture
|
|
8
|
+
@pytest.fixture
|
|
9
9
|
def calculation_prepare(tmp_path, part_settings, qtbot):
|
|
10
10
|
def _constructor(file_list, calculation_plan=None):
|
|
11
11
|
if calculation_plan is None:
|
{partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py
RENAMED
|
@@ -18,7 +18,7 @@ from PartSeg._roi_analysis.export_batch import (
|
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
@pytest.fixture
|
|
21
|
+
@pytest.fixture
|
|
22
22
|
def _dummy_tiffs(tmp_path):
|
|
23
23
|
for i in range(1, 11):
|
|
24
24
|
(tmp_path / f"stack1_component{i}.tif").touch()
|
|
@@ -74,7 +74,7 @@ def test_fail_export_empty_excel(tmp_path):
|
|
|
74
74
|
list(export_to_archive(tmp_path / "empty.xlsx", tmp_path, tmp_path / "arch.tar.gz"))
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
@pytest.fixture
|
|
77
|
+
@pytest.fixture
|
|
78
78
|
def zenodo_kwargs():
|
|
79
79
|
return {
|
|
80
80
|
"zenodo_token": "sample_token",
|
{partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_image_view.py
RENAMED
|
@@ -7,7 +7,7 @@ from PartSeg.common_gui.channel_control import ChannelProperty
|
|
|
7
7
|
from PartSegCore.roi_info import ROIInfo
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
@pytest.mark.windows_ci_skip
|
|
10
|
+
@pytest.mark.windows_ci_skip
|
|
11
11
|
def test_synchronize(part_settings, image2, qtbot):
|
|
12
12
|
prop = ChannelProperty(part_settings, "test1")
|
|
13
13
|
view1 = ResultImageView(part_settings, prop, "test1")
|
|
@@ -36,7 +36,7 @@ def test_synchronize(part_settings, image2, qtbot):
|
|
|
36
36
|
view2.hide()
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
@pytest.mark.windows_ci_skip
|
|
39
|
+
@pytest.mark.windows_ci_skip
|
|
40
40
|
def test_synchronize_change_image_dim(part_settings, image2, image2d, qtbot):
|
|
41
41
|
part_settings.image = image2d
|
|
42
42
|
prop = ChannelProperty(part_settings, "test1")
|
|
@@ -101,7 +101,7 @@ class TestResultImageView:
|
|
|
101
101
|
part_settings.set_in_profile("test.image_state.only_border", False)
|
|
102
102
|
assert not view.only_border.isChecked()
|
|
103
103
|
|
|
104
|
-
@pytest.mark.windows_ci_skip
|
|
104
|
+
@pytest.mark.windows_ci_skip
|
|
105
105
|
def test_resize(self, part_settings, image2, qtbot):
|
|
106
106
|
prop = ChannelProperty(part_settings, "test")
|
|
107
107
|
view = ResultImageView(part_settings, prop, "test")
|
|
@@ -118,7 +118,7 @@ class TestResultImageView:
|
|
|
118
118
|
assert view.btn_layout2.count() == 2
|
|
119
119
|
view.hide()
|
|
120
120
|
|
|
121
|
-
@pytest.mark.windows_ci_skip
|
|
121
|
+
@pytest.mark.windows_ci_skip
|
|
122
122
|
def test_with_roi_alternatives(self, part_settings, image2, qtbot):
|
|
123
123
|
prop = ChannelProperty(part_settings, "test")
|
|
124
124
|
view = ResultImageView(part_settings, prop, "test")
|
{partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_analysis/test_main_window.py
RENAMED
|
@@ -12,7 +12,7 @@ from PartSegCore.segmentation import ROIExtractionResult
|
|
|
12
12
|
|
|
13
13
|
class TestAnalysisMainWindow:
|
|
14
14
|
# @pytest.mark.skipif((platform.system() == "Linux") and CI_BUILD, reason="debug test fail")
|
|
15
|
-
@pytest.mark.pyside_skip
|
|
15
|
+
@pytest.mark.pyside_skip
|
|
16
16
|
def test_opening(self, qtbot, tmpdir):
|
|
17
17
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
18
18
|
qtbot.addWidget(main_window)
|
|
@@ -22,7 +22,7 @@ class TestAnalysisMainWindow:
|
|
|
22
22
|
main_window.advanced_window.close()
|
|
23
23
|
qtbot.wait(50)
|
|
24
24
|
|
|
25
|
-
@pytest.mark.pyside_skip
|
|
25
|
+
@pytest.mark.pyside_skip
|
|
26
26
|
def test_change_theme(self, qtbot, tmpdir):
|
|
27
27
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
28
28
|
qtbot.addWidget(main_window)
|
|
@@ -30,7 +30,7 @@ class TestAnalysisMainWindow:
|
|
|
30
30
|
main_window.settings.theme_name = "dark"
|
|
31
31
|
assert main_window.raw_image.viewer.theme == "dark"
|
|
32
32
|
|
|
33
|
-
@pytest.mark.pyside_skip
|
|
33
|
+
@pytest.mark.pyside_skip
|
|
34
34
|
def test_scale_bar(self, qtbot, tmpdir):
|
|
35
35
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
36
36
|
qtbot.addWidget(main_window)
|
|
@@ -51,7 +51,7 @@ class TestAnalysisMainWindow:
|
|
|
51
51
|
assert set(res.roi_info.bound_info) == {1}
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
@pytest.fixture
|
|
54
|
+
@pytest.fixture
|
|
55
55
|
def analysis_options(qtbot, part_settings):
|
|
56
56
|
ch_property = ChannelProperty(part_settings, "test")
|
|
57
57
|
qtbot.addWidget(ch_property)
|
|
@@ -4,7 +4,7 @@ from PartSeg._roi_mask.batch_proceed import BatchProceed, BatchTask
|
|
|
4
4
|
from PartSegCore.mask.io_functions import SaveROIOptions
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
@pytest.fixture
|
|
7
|
+
@pytest.fixture
|
|
8
8
|
def batch_task(stack_image, mask_threshold_profile):
|
|
9
9
|
return BatchTask(stack_image, mask_threshold_profile, None)
|
|
10
10
|
|
{partseg-0.15.4b4 → partseg-0.15.4b5}/package/tests/test_PartSeg/roi_mask/test_main_window.py
RENAMED
|
@@ -9,13 +9,13 @@ from PartSegCore.roi_info import ROIInfo
|
|
|
9
9
|
|
|
10
10
|
class TestMaskMainWindow:
|
|
11
11
|
# @pytest.mark.skipif((platform.system() == "Linux") and CI_BUILD, reason="vispy problem")
|
|
12
|
-
@pytest.mark.pyside_skip
|
|
12
|
+
@pytest.mark.pyside_skip
|
|
13
13
|
def test_opening(self, qtbot, tmpdir):
|
|
14
14
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
15
15
|
qtbot.addWidget(main_window)
|
|
16
16
|
qtbot.wait(50)
|
|
17
17
|
|
|
18
|
-
@pytest.mark.pyside_skip
|
|
18
|
+
@pytest.mark.pyside_skip
|
|
19
19
|
def test_change_theme(self, qtbot, tmpdir):
|
|
20
20
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
21
21
|
qtbot.addWidget(main_window)
|
|
@@ -23,7 +23,7 @@ class TestMaskMainWindow:
|
|
|
23
23
|
main_window.settings.theme_name = "dark"
|
|
24
24
|
assert main_window.image_view.viewer.theme == "dark"
|
|
25
25
|
|
|
26
|
-
@pytest.mark.pyside_skip
|
|
26
|
+
@pytest.mark.pyside_skip
|
|
27
27
|
def test_scale_bar(self, qtbot, tmpdir):
|
|
28
28
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
29
29
|
qtbot.addWidget(main_window)
|
|
@@ -43,7 +43,7 @@ class TestMaskMainWindow:
|
|
|
43
43
|
res = MainWindow.get_project_info(str(tmp_path / "test.tiff"), image, ROIInfo(roi))
|
|
44
44
|
assert res.roi_extraction_parameters == {1: None}
|
|
45
45
|
|
|
46
|
-
@pytest.mark.pyside_skip
|
|
46
|
+
@pytest.mark.pyside_skip
|
|
47
47
|
def test_window_title(self, tmpdir, image, image2, qtbot):
|
|
48
48
|
main_window = MainWindow(tmpdir, initial_image=False)
|
|
49
49
|
qtbot.addWidget(main_window)
|
|
@@ -28,8 +28,8 @@ class TestMeasurementWidget:
|
|
|
28
28
|
qmessagebox_path.information.assert_called_once()
|
|
29
29
|
assert qmessagebox_path.information.call_args[0][1] == "Need mask"
|
|
30
30
|
|
|
31
|
-
@pytest.mark.enablethread
|
|
32
|
-
@pytest.mark.enabledialog
|
|
31
|
+
@pytest.mark.enablethread
|
|
32
|
+
@pytest.mark.enabledialog
|
|
33
33
|
def test_base(self, qtbot, analysis_segmentation, part_settings):
|
|
34
34
|
widget = MeasurementWidget(part_settings)
|
|
35
35
|
qtbot.addWidget(widget)
|
|
@@ -46,8 +46,8 @@ class TestMeasurementWidget:
|
|
|
46
46
|
assert widget.info_field.columnCount() == 2
|
|
47
47
|
assert widget.info_field.rowCount() == 2
|
|
48
48
|
|
|
49
|
-
@pytest.mark.enablethread
|
|
50
|
-
@pytest.mark.enabledialog
|
|
49
|
+
@pytest.mark.enablethread
|
|
50
|
+
@pytest.mark.enabledialog
|
|
51
51
|
def test_base2(self, qtbot, analysis_segmentation2, part_settings):
|
|
52
52
|
widget = MeasurementWidget(part_settings)
|
|
53
53
|
qtbot.addWidget(widget)
|
|
@@ -64,8 +64,8 @@ class TestMeasurementWidget:
|
|
|
64
64
|
assert widget.info_field.columnCount() == 3
|
|
65
65
|
assert widget.info_field.rowCount() == 2
|
|
66
66
|
|
|
67
|
-
@pytest.mark.enablethread
|
|
68
|
-
@pytest.mark.enabledialog
|
|
67
|
+
@pytest.mark.enablethread
|
|
68
|
+
@pytest.mark.enabledialog
|
|
69
69
|
def test_base_channels(self, qtbot, analysis_segmentation2, part_settings):
|
|
70
70
|
widget = MeasurementWidget(part_settings)
|
|
71
71
|
qtbot.addWidget(widget)
|
|
@@ -83,8 +83,8 @@ class TestMeasurementWidget:
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
class TestSimpleMeasurementsWidget:
|
|
86
|
-
@pytest.mark.enablethread
|
|
87
|
-
@pytest.mark.enabledialog
|
|
86
|
+
@pytest.mark.enablethread
|
|
87
|
+
@pytest.mark.enabledialog
|
|
88
88
|
def test_base(self, stack_settings, stack_segmentation1, qtbot):
|
|
89
89
|
widget = SimpleMeasurements(stack_settings)
|
|
90
90
|
qtbot.addWidget(widget)
|
|
@@ -81,7 +81,7 @@ class TestBaseMainWindow:
|
|
|
81
81
|
qtbot.addWidget(main_window)
|
|
82
82
|
assert len(main_window.get_colormaps()) == part_settings.image.channels
|
|
83
83
|
|
|
84
|
-
@pytest.mark.windows_ci_skip
|
|
84
|
+
@pytest.mark.windows_ci_skip
|
|
85
85
|
def test_napari_viewer(self, qtbot, part_settings):
|
|
86
86
|
main_window = BaseMainWindow(settings=part_settings)
|
|
87
87
|
qtbot.addWidget(main_window)
|
|
@@ -105,8 +105,8 @@ class TestBaseMainWindow:
|
|
|
105
105
|
assert not main_window.viewer_list
|
|
106
106
|
information_mock.assert_called_once()
|
|
107
107
|
|
|
108
|
-
@pytest.mark.windows_ci_skip
|
|
109
|
-
@pytest.mark.pyside6_skip
|
|
108
|
+
@pytest.mark.windows_ci_skip
|
|
109
|
+
@pytest.mark.pyside6_skip
|
|
110
110
|
def test_napari_viewer_additional_layers(self, qtbot, part_settings, monkeypatch):
|
|
111
111
|
main_window = BaseMainWindow(settings=part_settings)
|
|
112
112
|
qtbot.addWidget(main_window)
|
|
@@ -35,19 +35,19 @@ else:
|
|
|
35
35
|
return np.frombuffer(image.bits(), dtype=np.uint8, count=size * image.depth() // 8)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
@pytest.fixture
|
|
38
|
+
@pytest.fixture
|
|
39
39
|
def base_settings(tmp_path, qapp):
|
|
40
40
|
return BaseSettings(tmp_path)
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
@pytest.fixture
|
|
43
|
+
@pytest.fixture
|
|
44
44
|
def ch_property(base_settings, qtbot):
|
|
45
45
|
ch_prop = ChannelProperty(base_settings, start_name="test")
|
|
46
46
|
qtbot.add_widget(ch_prop)
|
|
47
47
|
return ch_prop
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
@pytest.fixture
|
|
50
|
+
@pytest.fixture
|
|
51
51
|
def image_view(base_settings, ch_property, qtbot):
|
|
52
52
|
image_view = ImageView(base_settings, ch_property, "test")
|
|
53
53
|
qtbot.add_widget(image_view)
|
|
@@ -284,7 +284,7 @@ class TestColorComboBoxGroup:
|
|
|
284
284
|
with qtbot.assert_not_emitted(box.coloring_update), qtbot.assert_not_emitted(box.change_channel):
|
|
285
285
|
ch_property.filter_radius.setValue(0.5)
|
|
286
286
|
|
|
287
|
-
@pytest.mark.windows_ci_skip
|
|
287
|
+
@pytest.mark.windows_ci_skip
|
|
288
288
|
@pytest.mark.parametrize("filter_value", NoiseFilterType.__members__.values())
|
|
289
289
|
def test_image_view_integration_filter(self, qtbot, tmp_path, filter_value, ch_property, image_view):
|
|
290
290
|
image_view.channel_control.set_active(1)
|
|
@@ -306,7 +306,7 @@ class TestColorComboBoxGroup:
|
|
|
306
306
|
filter_value == NoiseFilterType.No and np.any(image4 == 255)
|
|
307
307
|
)
|
|
308
308
|
|
|
309
|
-
@pytest.mark.windows_ci_skip
|
|
309
|
+
@pytest.mark.windows_ci_skip
|
|
310
310
|
def test_image_view_integration(self, qtbot, tmp_path, ch_property, image_view):
|
|
311
311
|
image_view.viewer_widget.screenshot(flash=False)
|
|
312
312
|
image1 = image_view.viewer_widget._render()
|
|
@@ -377,7 +377,7 @@ class TestColorComboBoxGroup:
|
|
|
377
377
|
assert np.any(image3 != image5)
|
|
378
378
|
assert np.any(image4 != image5)
|
|
379
379
|
|
|
380
|
-
@pytest.mark.windows_ci_skip
|
|
380
|
+
@pytest.mark.windows_ci_skip
|
|
381
381
|
def test_image_view_integration_gauss(self, qtbot, tmp_path, ch_property, image_view):
|
|
382
382
|
def check_parameters(name, index):
|
|
383
383
|
return name == "test" and index == 1
|
|
@@ -13,7 +13,7 @@ from PartSeg._launcher import check_version
|
|
|
13
13
|
from PartSeg._launcher.check_version import IGNORE_FILE
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
@pytest.mark.enablethread
|
|
16
|
+
@pytest.mark.enablethread
|
|
17
17
|
@pytest.mark.parametrize("thread", [False, True])
|
|
18
18
|
@pytest.mark.parametrize("package_name", ["PartSeg", "sample_name"])
|
|
19
19
|
def test_fetching(thread, package_name, monkeypatch, qtbot):
|
|
@@ -464,13 +464,13 @@ class TestLoadBackup:
|
|
|
464
464
|
assert not (tmp_path / "0.13.13").exists()
|
|
465
465
|
|
|
466
466
|
|
|
467
|
-
@pytest.fixture
|
|
467
|
+
@pytest.fixture
|
|
468
468
|
def image(tmp_path):
|
|
469
469
|
data = np.random.default_rng().uniform(size=(10, 10, 2))
|
|
470
470
|
return Image(data=data, image_spacing=(10, 10), axes_order="XYC", file_path=str(tmp_path / "test.tiff"))
|
|
471
471
|
|
|
472
472
|
|
|
473
|
-
@pytest.fixture
|
|
473
|
+
@pytest.fixture
|
|
474
474
|
def roi():
|
|
475
475
|
data = np.zeros((10, 10), dtype=np.uint8)
|
|
476
476
|
data[2:-2, 2:5] = 1
|