PartSeg 0.16.2__tar.gz → 0.16.4rc0__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.
Files changed (314) hide show
  1. {partseg-0.16.2 → partseg-0.16.4rc0}/MANIFEST.in +1 -0
  2. {partseg-0.16.2 → partseg-0.16.4rc0}/PKG-INFO +88 -12
  3. {partseg-0.16.2 → partseg-0.16.4rc0}/changelog.md +77 -0
  4. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_launcher/main_window.py +1 -1
  5. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/main_window.py +1 -1
  6. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/stack_settings.py +1 -0
  7. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/changelog.py +77 -0
  8. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/__init__.py +5 -1
  9. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/base_argparser.py +10 -9
  10. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/except_hook.py +2 -2
  11. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/custom_save_dialog.py +4 -1
  12. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/main_window.py +1 -0
  13. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/napari_image_view.py +19 -91
  14. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/qt_console.py +2 -2
  15. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/select_multiple_files.py +1 -1
  16. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/__init__.py +2 -2
  17. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/itk_snap_save/__init__.py +2 -2
  18. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/modeling_save/__init__.py +3 -3
  19. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/lables_control.py +2 -7
  20. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/old_partseg/__init__.py +3 -3
  21. partseg-0.16.4rc0/package/PartSeg/version.py +34 -0
  22. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg.egg-info/PKG-INFO +88 -12
  23. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg.egg-info/requires.txt +5 -5
  24. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/algorithm_describe_base.py +3 -3
  25. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/batch_processing/batch_backend.py +9 -5
  26. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +1 -1
  27. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/calculation_plan.py +1 -1
  28. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/measurement_base.py +11 -10
  29. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/measurement_calculation.py +1 -1
  30. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/convex_fill.py +2 -2
  31. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/io_utils.py +1 -1
  32. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +2 -0
  33. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/universal_const.py +1 -1
  34. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/utils.py +1 -1
  35. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegImage/image.py +64 -12
  36. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegImage/image_reader.py +23 -4
  37. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegImage/image_writer.py +1 -0
  38. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegImage/tifffile_fixes.py +1 -1
  39. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/conftest.py +3 -1
  40. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_common_gui.py +34 -13
  41. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_napari_image_view.py +1 -2
  42. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_napari_widgets.py +4 -7
  43. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_sentry.py +18 -10
  44. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_viewer.py +5 -0
  45. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_window_import.py +3 -3
  46. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +6 -6
  47. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_analysis_batch.py +24 -7
  48. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_class_generator.py +3 -6
  49. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_json_hooks.py +1 -2
  50. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_measurements.py +1 -1
  51. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegImage/test_image.py +44 -2
  52. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegImage/test_image_writer.py +29 -6
  53. {partseg-0.16.2 → partseg-0.16.4rc0}/pyproject.toml +20 -20
  54. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.10.txt +84 -85
  55. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.10_pydantic_1.txt +76 -76
  56. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.11.txt +88 -89
  57. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.11_pydantic_1.txt +80 -80
  58. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.12.txt +87 -87
  59. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.12_docs.txt +73 -74
  60. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.12_pydantic_1.txt +83 -83
  61. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.9.txt +72 -72
  62. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/constraints_py3.9_pydantic_1.txt +70 -70
  63. partseg-0.16.4rc0/requirements/pre_test_problematic_version.txt +3 -0
  64. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/version_denylist.txt +1 -1
  65. partseg-0.16.2/package/PartSeg/version.py +0 -21
  66. partseg-0.16.2/requirements/pre_test_problematic_version.txt +0 -2
  67. {partseg-0.16.2 → partseg-0.16.4rc0}/.napari/DESCRIPTION.md +0 -0
  68. {partseg-0.16.2 → partseg-0.16.4rc0}/.napari/config.yml +0 -0
  69. {partseg-0.16.2 → partseg-0.16.4rc0}/CITATION.cff +0 -0
  70. {partseg-0.16.2 → partseg-0.16.4rc0}/License.txt +0 -0
  71. {partseg-0.16.2 → partseg-0.16.4rc0}/Readme.md +0 -0
  72. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/__init__.py +0 -0
  73. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/__main__.py +0 -0
  74. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_launcher/__init__.py +0 -0
  75. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_launcher/check_survey.py +0 -0
  76. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_launcher/check_version.py +0 -0
  77. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/__init__.py +0 -0
  78. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
  79. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
  80. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
  81. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
  82. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/image_view.py +0 -0
  83. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/main_window.py +0 -0
  84. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
  85. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
  86. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
  87. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
  88. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/__init__.py +0 -0
  89. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
  90. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/image_view.py +0 -0
  91. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
  92. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
  93. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/abstract_class.py +0 -0
  94. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/base_settings.py +0 -0
  95. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/load_backup.py +0 -0
  96. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
  97. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/progress_thread.py +0 -0
  98. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
  99. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
  100. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/__init__.py +0 -0
  101. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/about_dialog.py +0 -0
  102. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/advanced_tabs.py +0 -0
  103. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/algorithms_description.py +0 -0
  104. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/channel_control.py +0 -0
  105. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
  106. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/colormap_creator.py +0 -0
  107. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/custom_buttons.py +0 -0
  108. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
  109. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/dict_viewer.py +0 -0
  110. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
  111. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/error_report.py +0 -0
  112. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/exception_hooks.py +0 -0
  113. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/flow_layout.py +0 -0
  114. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/icon_selector.py +0 -0
  115. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/image_adjustment.py +0 -0
  116. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/label_create.py +0 -0
  117. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
  118. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/mask_widget.py +0 -0
  119. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
  120. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
  121. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
  122. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/qt_modal.py +0 -0
  123. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/qt_util.py +0 -0
  124. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
  125. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
  126. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
  127. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/stack_image_view.py +0 -0
  128. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
  129. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
  130. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
  131. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/launcher_main.py +0 -0
  132. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/napari.yaml +0 -0
  133. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
  134. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/__init__.py +0 -0
  135. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/load_image.py +0 -0
  136. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/load_mask_project.py +0 -0
  137. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/load_masked_image.py +0 -0
  138. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/load_roi_project.py +0 -0
  139. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/loader.py +0 -0
  140. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/save_mask_roi.py +0 -0
  141. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_io/save_tiff_layer.py +0 -0
  142. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -0
  143. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
  144. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
  145. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
  146. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
  147. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
  148. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
  149. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +0 -0
  150. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
  151. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -0
  152. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +0 -0
  153. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/napari_widgets/utils.py +0 -0
  154. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
  155. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg/state_store.py +0 -0
  156. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg.egg-info/SOURCES.txt +0 -0
  157. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg.egg-info/dependency_links.txt +0 -0
  158. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg.egg-info/entry_points.txt +0 -0
  159. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSeg.egg-info/top_level.txt +0 -0
  160. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/__init__.py +0 -0
  161. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/_old_json_hooks.py +0 -0
  162. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/__init__.py +0 -0
  163. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/algorithm_description.py +0 -0
  164. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/analysis_utils.py +0 -0
  165. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
  166. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
  167. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/io_utils.py +0 -0
  168. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/load_functions.py +0 -0
  169. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/analysis/save_functions.py +0 -0
  170. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/autofit.py +0 -0
  171. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/channel_class.py +0 -0
  172. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/class_generator.py +0 -0
  173. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/color_image/__init__.py +0 -0
  174. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/color_image/base_colors.py +0 -0
  175. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/color_image/color_data.py +0 -0
  176. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/custom_name_generate.py +0 -0
  177. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_operations.py +0 -0
  178. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_transforming/__init__.py +0 -0
  179. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
  180. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_transforming/image_projection.py +0 -0
  181. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
  182. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
  183. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/image_transforming/transform_base.py +0 -0
  184. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/json_hooks.py +0 -0
  185. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/mask/__init__.py +0 -0
  186. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/mask/algorithm_description.py +0 -0
  187. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/mask/history_utils.py +0 -0
  188. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/mask/io_functions.py +0 -0
  189. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/mask_create.py +0 -0
  190. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/mask_partition_utils.py +0 -0
  191. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/plugins/__init__.py +0 -0
  192. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/project_info.py +0 -0
  193. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/register.py +0 -0
  194. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/roi_info.py +0 -0
  195. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/__init__.py +0 -0
  196. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
  197. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
  198. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
  199. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
  200. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
  201. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/threshold.py +0 -0
  202. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/utils.py +0 -0
  203. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/segmentation/watershed.py +0 -0
  204. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/sphinx/__init__.py +0 -0
  205. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
  206. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegImage/__init__.py +0 -0
  207. {partseg-0.16.2 → partseg-0.16.4rc0}/package/PartSegImage/channel_class.py +0 -0
  208. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/__init__.py +0 -0
  209. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/conftest.py +0 -0
  210. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
  211. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
  212. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
  213. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
  214. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
  215. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
  216. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
  217. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
  218. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
  219. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
  220. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
  221. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_analysis.py +0 -0
  222. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_base.py +0 -0
  223. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_base_widgets.py +0 -0
  224. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_channel_control.py +0 -0
  225. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_check_release.py +0 -0
  226. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_check_survey.py +0 -0
  227. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
  228. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_common_backend.py +0 -0
  229. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_io.py +0 -0
  230. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_label_choose.py +0 -0
  231. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_launcher.py +0 -0
  232. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_main_windows.py +0 -0
  233. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_napari_io.py +0 -0
  234. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_roi_analysis_batch.py +0 -0
  235. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSeg/test_settings.py +0 -0
  236. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/__init__.py +0 -0
  237. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
  238. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
  239. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
  240. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
  241. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_base.py +0 -0
  242. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_class_register.py +0 -0
  243. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_image_adjustment.py +0 -0
  244. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_io.py +0 -0
  245. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_mask_create.py +0 -0
  246. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
  247. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_min_req.py +0 -0
  248. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_mso.py +0 -0
  249. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
  250. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_segmentation.py +0 -0
  251. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
  252. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_smooth.py +0 -0
  253. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegCore/test_utils.py +0 -0
  254. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegImage/__init__.py +0 -0
  255. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
  256. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
  257. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
  258. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/measurements_profile.json +0 -0
  259. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/napari_measurements_profile.json +0 -0
  260. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
  261. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
  262. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/notebook/segment_data.json +0 -0
  263. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
  264. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
  265. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
  266. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
  267. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
  268. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
  269. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
  270. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
  271. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
  272. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
  273. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
  274. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
  275. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
  276. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
  277. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
  278. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
  279. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
  280. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
  281. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
  282. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
  283. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
  284. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
  285. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
  286. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
  287. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
  288. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
  289. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
  290. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
  291. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
  292. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
  293. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
  294. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
  295. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
  296. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
  297. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
  298. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
  299. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/ome.xsd.xml +0 -0
  300. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
  301. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/problematic_json_batch.json +0 -0
  302. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/problematic_profile_dict.json +0 -0
  303. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/range_profile.json +0 -0
  304. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/sample_batch_output.xlsx +0 -0
  305. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
  306. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
  307. {partseg-0.16.2 → partseg-0.16.4rc0}/package/tests/test_data/workflow.json +0 -0
  308. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/dependabot_runtime.txt +0 -0
  309. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/pydantic_1.txt +0 -0
  310. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/requirements_ci.txt +0 -0
  311. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/requirements_dev.txt +0 -0
  312. {partseg-0.16.2 → partseg-0.16.4rc0}/requirements/requirements_test.txt +0 -0
  313. {partseg-0.16.2 → partseg-0.16.4rc0}/setup.cfg +0 -0
  314. {partseg-0.16.2 → partseg-0.16.4rc0}/setup.py +0 -0
@@ -29,6 +29,7 @@ exclude .zenodo.json
29
29
  exclude tox*
30
30
  exclude .pre-commit-config.yaml
31
31
  exclude .deepsource.toml
32
+ exclude .coderabbit.yaml
32
33
  exclude help/**
33
34
  exclude docs/**
34
35
  exclude images/**
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PartSeg
3
- Version: 0.16.2
3
+ Version: 0.16.4rc0
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
- License: BSD-3-Clause
6
+ License-Expression: BSD-3-Clause
7
7
  Project-URL: Homepage, https://partseg.github.io/
8
8
  Project-URL: Documentation, https://partseg.readthedocs.io/en/stable/
9
9
  Project-URL: Source Code, https://github.com/4DNucleome/PartSeg
@@ -15,7 +15,6 @@ Platform: Windows
15
15
  Platform: MacOs
16
16
  Classifier: Development Status :: 3 - Alpha
17
17
  Classifier: Framework :: napari
18
- Classifier: License :: OSI Approved :: BSD License
19
18
  Classifier: Operating System :: OS Independent
20
19
  Classifier: Programming Language :: Python :: 3
21
20
  Classifier: Programming Language :: Python :: 3 :: Only
@@ -45,9 +44,9 @@ Requires-Dist: imagecodecs>=2020.5.30
45
44
  Requires-Dist: imageio>=2.20.0
46
45
  Requires-Dist: ipykernel>=5.2.0
47
46
  Requires-Dist: local-migrator>=0.1.7
48
- Requires-Dist: magicgui!=0.5.0,>=0.4.0
47
+ Requires-Dist: magicgui>=0.7.0
49
48
  Requires-Dist: mahotas>=1.4.12
50
- Requires-Dist: napari>=0.4.19
49
+ Requires-Dist: napari>=0.5.0
51
50
  Requires-Dist: nme>=0.1.7
52
51
  Requires-Dist: numpy>=1.22.2; python_version >= "3.10"
53
52
  Requires-Dist: numpy<2,>=1.22.2; python_version < "3.10"
@@ -55,7 +54,7 @@ Requires-Dist: oiffile>=2020.1.18
55
54
  Requires-Dist: openpyxl>=3.0.7
56
55
  Requires-Dist: packaging>=22.0
57
56
  Requires-Dist: pandas>=1.3.0
58
- Requires-Dist: psygnal>=0.3.4
57
+ Requires-Dist: psygnal>=0.5.0
59
58
  Requires-Dist: pydantic<3,>=1.9.1
60
59
  Requires-Dist: pygments>=2.12.0
61
60
  Requires-Dist: qtconsole>=4.7.7
@@ -63,9 +62,9 @@ Requires-Dist: requests>=2.25.0
63
62
  Requires-Dist: scipy>=1.5.4
64
63
  Requires-Dist: sentry-sdk>=2.4.0
65
64
  Requires-Dist: six>=1.11.0
66
- Requires-Dist: superqt>=0.4.1
65
+ Requires-Dist: superqt>=0.6.7
67
66
  Requires-Dist: sympy>=1.10
68
- Requires-Dist: tifffile>=2020.9.30
67
+ Requires-Dist: tifffile>=2022.4.8
69
68
  Requires-Dist: traceback-with-variables>=2.0.4
70
69
  Requires-Dist: vispy>=0.14.1
71
70
  Requires-Dist: xlrd>=1.1.0
@@ -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.16.2/PartSeg-0.16.2-windows.zip) (build on Windows 10)
155
- - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.2/PartSeg-0.16.2-linux.zip) (build on Ubuntu 20.04)
156
- - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.2/PartSeg-0.16.2-macos.zip) (build on macOS 13)
157
- - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.2/PartSeg-0.16.2-macos-arm64.zip) (build on macOS 14)
153
+ - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4rc0/PartSeg-0.16.4rc0-windows.zip) (build on Windows 10)
154
+ - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4rc0/PartSeg-0.16.4rc0-linux.zip) (build on Ubuntu 20.04)
155
+ - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4rc0/PartSeg-0.16.4rc0-macos.zip) (build on macOS 13)
156
+ - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4rc0/PartSeg-0.16.4rc0-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,83 @@ 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.16.4 - 2025-10-15
247
+
248
+ #### 🚀 Features
249
+
250
+ - Set units for viewer spawned from the view menu ([#1308](https://github.com/4DNucleome/PartSeg/pull/1308))
251
+ - Add saving color maps in OME tiffs ([#1312](https://github.com/4DNucleome/PartSeg/pull/1312))
252
+
253
+ #### 🐛 Bug Fixes
254
+
255
+ - Fit ROI shape to image to solve problem of saving data in batch process ([#1288](https://github.com/4DNucleome/PartSeg/pull/1288))
256
+ - If save dialog is used to select directory save it in history not parent ([#1289](https://github.com/4DNucleome/PartSeg/pull/1289))
257
+ - Fix `--pre` test by stopping using the deprecated `sentry_sdk` method ([#1304](https://github.com/4DNucleome/PartSeg/pull/1304))
258
+ - Fix saving in batch if the data is mask segmentation project ([#1309](https://github.com/4DNucleome/PartSeg/pull/1309))
259
+ - Clean elements outside mask for multiple otsu method ([#1319](https://github.com/4DNucleome/PartSeg/pull/1319))
260
+
261
+ #### 🧪 Testing
262
+
263
+ - [Automatic] Constraints upgrades: `pandas` ([#1285](https://github.com/4DNucleome/PartSeg/pull/1285))
264
+ - [Automatic] Constraints upgrades: `ipykernel`, `numpy`, `scipy`, `sentry-sdk` ([#1287](https://github.com/4DNucleome/PartSeg/pull/1287))
265
+ - [Automatic] Constraints upgrades: `imagecodecs`, `ipykernel`, `napari`, `sentry-sdk` ([#1290](https://github.com/4DNucleome/PartSeg/pull/1290))
266
+ - [Automatic] Constraints upgrades: `napari`, `psygnal`, `sentry-sdk`, `superqt` ([#1295](https://github.com/4DNucleome/PartSeg/pull/1295))
267
+ - [Automatic] Constraints upgrades: `pandas`, `requests` ([#1297](https://github.com/4DNucleome/PartSeg/pull/1297))
268
+ - [Automatic] Constraints upgrades: `ipython`, `numpy`, `pydantic`, `qtconsole`, `scipy`, `sentry-sdk`, `tifffile`, `xlsxwriter` ([#1301](https://github.com/4DNucleome/PartSeg/pull/1301))
269
+ - [Automatic] Constraints upgrades: `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1305](https://github.com/4DNucleome/PartSeg/pull/1305))
270
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `pandas`, `pydantic`, `tifffile` ([#1311](https://github.com/4DNucleome/PartSeg/pull/1311))
271
+ - [Automatic] Constraints upgrades: `pydantic`, `sentry-sdk` ([#1316](https://github.com/4DNucleome/PartSeg/pull/1316))
272
+
273
+ #### ⚙️ Miscellaneous Tasks
274
+
275
+ - [pre-commit.ci] pre-commit autoupdate ([#1286](https://github.com/4DNucleome/PartSeg/pull/1286))
276
+ - [pre-commit.ci] pre-commit autoupdate ([#1291](https://github.com/4DNucleome/PartSeg/pull/1291))
277
+ - [pre-commit.ci] pre-commit autoupdate ([#1296](https://github.com/4DNucleome/PartSeg/pull/1296))
278
+ - [pre-commit.ci] pre-commit autoupdate ([#1298](https://github.com/4DNucleome/PartSeg/pull/1298))
279
+ - Add more wait on coderabbit review ([#1300](https://github.com/4DNucleome/PartSeg/pull/1300))
280
+ - Use prek for initial check of code format ([#1299](https://github.com/4DNucleome/PartSeg/pull/1299))
281
+ - [pre-commit.ci] pre-commit autoupdate ([#1302](https://github.com/4DNucleome/PartSeg/pull/1302))
282
+ - Use most recent macOS images on GitHub Actions ([#1310](https://github.com/4DNucleome/PartSeg/pull/1310))
283
+ - [pre-commit.ci] pre-commit autoupdate ([#1306](https://github.com/4DNucleome/PartSeg/pull/1306))
284
+ - [pre-commit.ci] pre-commit autoupdate ([#1313](https://github.com/4DNucleome/PartSeg/pull/1313))
285
+ - Add cooldown of dependabot PR ([#1317](https://github.com/4DNucleome/PartSeg/pull/1317))
286
+ - Update licensing metadata to follow modern standards ([#1314](https://github.com/4DNucleome/PartSeg/pull/1314))
287
+ - Make test log more readable by using 120 columns and colors ([#1320](https://github.com/4DNucleome/PartSeg/pull/1320))
288
+ - [pre-commit.ci] pre-commit autoupdate ([#1318](https://github.com/4DNucleome/PartSeg/pull/1318))
289
+
290
+ #### 🛡️ Security
291
+
292
+ - *(deps)* Bump actions/download-artifact from 4 to 5 in the github-actions group ([#1292](https://github.com/4DNucleome/PartSeg/pull/1292))
293
+ - *(deps)* Bump pyvista/setup-headless-display-action from 3 to 4 ([#1294](https://github.com/4DNucleome/PartSeg/pull/1294))
294
+ - *(deps)* Bump actions/checkout from 4 to 5 in the github-actions group ([#1293](https://github.com/4DNucleome/PartSeg/pull/1293))
295
+ - *(deps)* Bump actions/setup-python from 5 to 6 in the github-actions group ([#1303](https://github.com/4DNucleome/PartSeg/pull/1303))
296
+
297
+ ### 0.16.3 - 2025-07-10
298
+
299
+ #### 🐛 Bug Fixes
300
+
301
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
302
+
303
+ #### 🧪 Testing
304
+
305
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
306
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
307
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
308
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
309
+
310
+ #### ⚙️ Miscellaneous Tasks
311
+
312
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
313
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
314
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
315
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
316
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
317
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
318
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
319
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
320
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
321
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
322
+
247
323
  ### 0.16.2 - 2025-05-12
248
324
 
249
325
  #### 🧪 Testing
@@ -2,6 +2,83 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.16.4 - 2025-10-15
6
+
7
+ ### 🚀 Features
8
+
9
+ - Set units for viewer spawned from the view menu ([#1308](https://github.com/4DNucleome/PartSeg/pull/1308))
10
+ - Add saving color maps in OME tiffs ([#1312](https://github.com/4DNucleome/PartSeg/pull/1312))
11
+
12
+ ### 🐛 Bug Fixes
13
+
14
+ - Fit ROI shape to image to solve problem of saving data in batch process ([#1288](https://github.com/4DNucleome/PartSeg/pull/1288))
15
+ - If save dialog is used to select directory save it in history not parent ([#1289](https://github.com/4DNucleome/PartSeg/pull/1289))
16
+ - Fix `--pre` test by stopping using the deprecated `sentry_sdk` method ([#1304](https://github.com/4DNucleome/PartSeg/pull/1304))
17
+ - Fix saving in batch if the data is mask segmentation project ([#1309](https://github.com/4DNucleome/PartSeg/pull/1309))
18
+ - Clean elements outside mask for multiple otsu method ([#1319](https://github.com/4DNucleome/PartSeg/pull/1319))
19
+
20
+ ### 🧪 Testing
21
+
22
+ - [Automatic] Constraints upgrades: `pandas` ([#1285](https://github.com/4DNucleome/PartSeg/pull/1285))
23
+ - [Automatic] Constraints upgrades: `ipykernel`, `numpy`, `scipy`, `sentry-sdk` ([#1287](https://github.com/4DNucleome/PartSeg/pull/1287))
24
+ - [Automatic] Constraints upgrades: `imagecodecs`, `ipykernel`, `napari`, `sentry-sdk` ([#1290](https://github.com/4DNucleome/PartSeg/pull/1290))
25
+ - [Automatic] Constraints upgrades: `napari`, `psygnal`, `sentry-sdk`, `superqt` ([#1295](https://github.com/4DNucleome/PartSeg/pull/1295))
26
+ - [Automatic] Constraints upgrades: `pandas`, `requests` ([#1297](https://github.com/4DNucleome/PartSeg/pull/1297))
27
+ - [Automatic] Constraints upgrades: `ipython`, `numpy`, `pydantic`, `qtconsole`, `scipy`, `sentry-sdk`, `tifffile`, `xlsxwriter` ([#1301](https://github.com/4DNucleome/PartSeg/pull/1301))
28
+ - [Automatic] Constraints upgrades: `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1305](https://github.com/4DNucleome/PartSeg/pull/1305))
29
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `pandas`, `pydantic`, `tifffile` ([#1311](https://github.com/4DNucleome/PartSeg/pull/1311))
30
+ - [Automatic] Constraints upgrades: `pydantic`, `sentry-sdk` ([#1316](https://github.com/4DNucleome/PartSeg/pull/1316))
31
+
32
+ ### ⚙️ Miscellaneous Tasks
33
+
34
+ - [pre-commit.ci] pre-commit autoupdate ([#1286](https://github.com/4DNucleome/PartSeg/pull/1286))
35
+ - [pre-commit.ci] pre-commit autoupdate ([#1291](https://github.com/4DNucleome/PartSeg/pull/1291))
36
+ - [pre-commit.ci] pre-commit autoupdate ([#1296](https://github.com/4DNucleome/PartSeg/pull/1296))
37
+ - [pre-commit.ci] pre-commit autoupdate ([#1298](https://github.com/4DNucleome/PartSeg/pull/1298))
38
+ - Add more wait on coderabbit review ([#1300](https://github.com/4DNucleome/PartSeg/pull/1300))
39
+ - Use prek for initial check of code format ([#1299](https://github.com/4DNucleome/PartSeg/pull/1299))
40
+ - [pre-commit.ci] pre-commit autoupdate ([#1302](https://github.com/4DNucleome/PartSeg/pull/1302))
41
+ - Use most recent macOS images on GitHub Actions ([#1310](https://github.com/4DNucleome/PartSeg/pull/1310))
42
+ - [pre-commit.ci] pre-commit autoupdate ([#1306](https://github.com/4DNucleome/PartSeg/pull/1306))
43
+ - [pre-commit.ci] pre-commit autoupdate ([#1313](https://github.com/4DNucleome/PartSeg/pull/1313))
44
+ - Add cooldown of dependabot PR ([#1317](https://github.com/4DNucleome/PartSeg/pull/1317))
45
+ - Update licensing metadata to follow modern standards ([#1314](https://github.com/4DNucleome/PartSeg/pull/1314))
46
+ - Make test log more readable by using 120 columns and colors ([#1320](https://github.com/4DNucleome/PartSeg/pull/1320))
47
+ - [pre-commit.ci] pre-commit autoupdate ([#1318](https://github.com/4DNucleome/PartSeg/pull/1318))
48
+
49
+ ### 🛡️ Security
50
+
51
+ - *(deps)* Bump actions/download-artifact from 4 to 5 in the github-actions group ([#1292](https://github.com/4DNucleome/PartSeg/pull/1292))
52
+ - *(deps)* Bump pyvista/setup-headless-display-action from 3 to 4 ([#1294](https://github.com/4DNucleome/PartSeg/pull/1294))
53
+ - *(deps)* Bump actions/checkout from 4 to 5 in the github-actions group ([#1293](https://github.com/4DNucleome/PartSeg/pull/1293))
54
+ - *(deps)* Bump actions/setup-python from 5 to 6 in the github-actions group ([#1303](https://github.com/4DNucleome/PartSeg/pull/1303))
55
+
56
+ ## 0.16.3 - 2025-07-10
57
+
58
+ ### 🐛 Bug Fixes
59
+
60
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
61
+
62
+ ### 🧪 Testing
63
+
64
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
65
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
66
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
67
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
68
+
69
+ ### ⚙️ Miscellaneous Tasks
70
+
71
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
72
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
73
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
74
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
75
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
76
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
77
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
78
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
79
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
80
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
81
+
5
82
  ## 0.16.2 - 2025-05-12
6
83
 
7
84
  ### 🧪 Testing
@@ -34,7 +34,7 @@ class Prepare(QThread):
34
34
  if not self.module: # pragma: no cover
35
35
  return
36
36
 
37
- from PartSeg import plugins
37
+ from PartSeg import plugins # noqa: PLC0415
38
38
 
39
39
  plugins.register()
40
40
  main_window_module = importlib.import_module(self.module)
@@ -687,7 +687,7 @@ class AlgorithmOptions(QWidget):
687
687
  settings=self.settings,
688
688
  system_widget=False,
689
689
  path="io.save_batch",
690
- file_mode=PSaveDialog.Directory,
690
+ file_mode=PSaveDialog.FileMode.Directory,
691
691
  )
692
692
  if not dial.exec_():
693
693
  return
@@ -218,6 +218,7 @@ class StackSettings(BaseSettings):
218
218
  """
219
219
 
220
220
  # TODO Refactor
221
+ new_roi_info = new_roi_info.fit_to_image(state.image)
221
222
  if not save_chosen or state.roi_info.roi is None or len(state.selected_components) == 0:
222
223
  return dataclasses.replace(
223
224
  state,
@@ -3,6 +3,83 @@ changelog = """
3
3
 
4
4
  All notable changes to this project will be documented in this file.
5
5
 
6
+ ## 0.16.4 - 2025-10-15
7
+
8
+ ### 🚀 Features
9
+
10
+ - Set units for viewer spawned from the view menu ([#1308](https://github.com/4DNucleome/PartSeg/pull/1308))
11
+ - Add saving color maps in OME tiffs ([#1312](https://github.com/4DNucleome/PartSeg/pull/1312))
12
+
13
+ ### 🐛 Bug Fixes
14
+
15
+ - Fit ROI shape to image to solve problem of saving data in batch process ([#1288](https://github.com/4DNucleome/PartSeg/pull/1288))
16
+ - If save dialog is used to select directory save it in history not parent ([#1289](https://github.com/4DNucleome/PartSeg/pull/1289))
17
+ - Fix `--pre` test by stopping using the deprecated `sentry_sdk` method ([#1304](https://github.com/4DNucleome/PartSeg/pull/1304))
18
+ - Fix saving in batch if the data is mask segmentation project ([#1309](https://github.com/4DNucleome/PartSeg/pull/1309))
19
+ - Clean elements outside mask for multiple otsu method ([#1319](https://github.com/4DNucleome/PartSeg/pull/1319))
20
+
21
+ ### 🧪 Testing
22
+
23
+ - [Automatic] Constraints upgrades: `pandas` ([#1285](https://github.com/4DNucleome/PartSeg/pull/1285))
24
+ - [Automatic] Constraints upgrades: `ipykernel`, `numpy`, `scipy`, `sentry-sdk` ([#1287](https://github.com/4DNucleome/PartSeg/pull/1287))
25
+ - [Automatic] Constraints upgrades: `imagecodecs`, `ipykernel`, `napari`, `sentry-sdk` ([#1290](https://github.com/4DNucleome/PartSeg/pull/1290))
26
+ - [Automatic] Constraints upgrades: `napari`, `psygnal`, `sentry-sdk`, `superqt` ([#1295](https://github.com/4DNucleome/PartSeg/pull/1295))
27
+ - [Automatic] Constraints upgrades: `pandas`, `requests` ([#1297](https://github.com/4DNucleome/PartSeg/pull/1297))
28
+ - [Automatic] Constraints upgrades: `ipython`, `numpy`, `pydantic`, `qtconsole`, `scipy`, `sentry-sdk`, `tifffile`, `xlsxwriter` ([#1301](https://github.com/4DNucleome/PartSeg/pull/1301))
29
+ - [Automatic] Constraints upgrades: `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1305](https://github.com/4DNucleome/PartSeg/pull/1305))
30
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `pandas`, `pydantic`, `tifffile` ([#1311](https://github.com/4DNucleome/PartSeg/pull/1311))
31
+ - [Automatic] Constraints upgrades: `pydantic`, `sentry-sdk` ([#1316](https://github.com/4DNucleome/PartSeg/pull/1316))
32
+
33
+ ### ⚙️ Miscellaneous Tasks
34
+
35
+ - [pre-commit.ci] pre-commit autoupdate ([#1286](https://github.com/4DNucleome/PartSeg/pull/1286))
36
+ - [pre-commit.ci] pre-commit autoupdate ([#1291](https://github.com/4DNucleome/PartSeg/pull/1291))
37
+ - [pre-commit.ci] pre-commit autoupdate ([#1296](https://github.com/4DNucleome/PartSeg/pull/1296))
38
+ - [pre-commit.ci] pre-commit autoupdate ([#1298](https://github.com/4DNucleome/PartSeg/pull/1298))
39
+ - Add more wait on coderabbit review ([#1300](https://github.com/4DNucleome/PartSeg/pull/1300))
40
+ - Use prek for initial check of code format ([#1299](https://github.com/4DNucleome/PartSeg/pull/1299))
41
+ - [pre-commit.ci] pre-commit autoupdate ([#1302](https://github.com/4DNucleome/PartSeg/pull/1302))
42
+ - Use most recent macOS images on GitHub Actions ([#1310](https://github.com/4DNucleome/PartSeg/pull/1310))
43
+ - [pre-commit.ci] pre-commit autoupdate ([#1306](https://github.com/4DNucleome/PartSeg/pull/1306))
44
+ - [pre-commit.ci] pre-commit autoupdate ([#1313](https://github.com/4DNucleome/PartSeg/pull/1313))
45
+ - Add cooldown of dependabot PR ([#1317](https://github.com/4DNucleome/PartSeg/pull/1317))
46
+ - Update licensing metadata to follow modern standards ([#1314](https://github.com/4DNucleome/PartSeg/pull/1314))
47
+ - Make test log more readable by using 120 columns and colors ([#1320](https://github.com/4DNucleome/PartSeg/pull/1320))
48
+ - [pre-commit.ci] pre-commit autoupdate ([#1318](https://github.com/4DNucleome/PartSeg/pull/1318))
49
+
50
+ ### 🛡️ Security
51
+
52
+ - *(deps)* Bump actions/download-artifact from 4 to 5 in the github-actions group ([#1292](https://github.com/4DNucleome/PartSeg/pull/1292))
53
+ - *(deps)* Bump pyvista/setup-headless-display-action from 3 to 4 ([#1294](https://github.com/4DNucleome/PartSeg/pull/1294))
54
+ - *(deps)* Bump actions/checkout from 4 to 5 in the github-actions group ([#1293](https://github.com/4DNucleome/PartSeg/pull/1293))
55
+ - *(deps)* Bump actions/setup-python from 5 to 6 in the github-actions group ([#1303](https://github.com/4DNucleome/PartSeg/pull/1303))
56
+
57
+ ## 0.16.3 - 2025-07-10
58
+
59
+ ### 🐛 Bug Fixes
60
+
61
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
62
+
63
+ ### 🧪 Testing
64
+
65
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
66
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
67
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
68
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
69
+
70
+ ### ⚙️ Miscellaneous Tasks
71
+
72
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
73
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
74
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
75
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
76
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
77
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
78
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
79
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
80
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
81
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
82
+
6
83
  ## 0.16.2 - 2025-05-12
7
84
 
8
85
  ### 🧪 Testing
@@ -11,8 +11,12 @@ if TYPE_CHECKING: # pragma: no cover
11
11
 
12
12
 
13
13
  def napari_get_settings(path=None) -> "NapariSettings":
14
- from napari.settings import get_settings as _napari_get_settings
14
+ from napari.utils import theme # noqa: PLC0415 I001
15
+ from napari.settings import get_settings as _napari_get_settings # noqa: PLC0415
15
16
 
17
+ del theme # skipcq: PTC-W0043
18
+ # Need to import theme before settings to work around the circular import
19
+ # error in napari==0.6.5.
16
20
  if path is not None:
17
21
  path = os.path.join(path, "settings.yaml")
18
22
  if path is not None:
@@ -136,20 +136,21 @@ def _setup_sentry(): # pragma: no cover
136
136
  state_store.report_errors = False
137
137
  return
138
138
  sentry_sdk.utils.MAX_STRING_LENGTH = 10**4
139
- sentry_sdk.utils.DEFAULT_MAX_VALUE_LENGTH = 10**4
139
+ if getattr(sentry_sdk.utils, "DEFAULT_MAX_VALUE_LENGTH", 5000) < 10**4:
140
+ sentry_sdk.utils.DEFAULT_MAX_VALUE_LENGTH = 10**4
140
141
  sentry_sdk.serializer.safe_repr = safe_repr
141
142
  sentry_sdk.serializer.MAX_DATABAG_BREADTH = 100
142
143
  init_kwargs = {"release": f"PartSeg@{__version__}"}
143
144
  if SENTRY_GE_1_29:
144
- init_kwargs["max_value_length"] = 10**4
145
+ init_kwargs["max_value_length"] = sentry_sdk.utils.DEFAULT_MAX_VALUE_LENGTH
145
146
  sentry_sdk.init(
146
147
  state_store.sentry_url,
147
148
  **init_kwargs,
148
149
  )
149
- with sentry_sdk.configure_scope() as scope:
150
- scope.set_user(
151
- {
152
- "name": getpass.getuser(),
153
- "id": zlib.adler32(f"{getpass.getuser()}#{platform.node()}".encode()),
154
- }
155
- )
150
+ scope = sentry_sdk.get_current_scope()
151
+ scope.set_user(
152
+ {
153
+ "name": getpass.getuser(),
154
+ "id": zlib.adler32(f"{getpass.getuser()}#{platform.node()}".encode()),
155
+ }
156
+ )
@@ -56,7 +56,7 @@ def show_error(error=None):
56
56
  if error is None:
57
57
  return
58
58
 
59
- from PartSeg.common_gui.error_report import ErrorDialog, QMessageFromException
59
+ from PartSeg.common_gui.error_report import ErrorDialog, QMessageFromException # noqa: PLC0415
60
60
 
61
61
  if isinstance(error, TiffFileException):
62
62
  QMessageFromException.critical(
@@ -87,7 +87,7 @@ def show_warning(header=None, text=None, exception=None):
87
87
  This function is to ensure creation warning dialog in main thread.
88
88
  """
89
89
  if exception is not None:
90
- from PartSeg.common_gui.error_report import QMessageFromException
90
+ from PartSeg.common_gui.error_report import QMessageFromException # noqa: PLC0415
91
91
 
92
92
  message = QMessageFromException(QMessageBox.Icon.Warning, header, text, exception=exception)
93
93
  else:
@@ -184,7 +184,10 @@ class PSaveDialog(CustomSaveDialog):
184
184
  super().accept()
185
185
  if self.result() != QDialog.DialogCode.Accepted:
186
186
  return
187
- directory = os.path.dirname(self.selectedFiles()[0])
187
+ if self.fileMode() == QFileDialog.FileMode.Directory:
188
+ directory = self.selectedFiles()[0]
189
+ else:
190
+ directory = os.path.dirname(self.selectedFiles()[0])
188
191
  self.settings.add_path_history(directory)
189
192
  self.settings.set(self.path_in_dict, directory)
190
193
  if self.filter_path:
@@ -228,6 +228,7 @@ class BaseMainWindow(QMainWindow):
228
228
 
229
229
  def napari_viewer_show(self):
230
230
  viewer = Viewer(title="Additional output", settings=self.settings, partseg_viewer_name=self.channel_info)
231
+ viewer.scale_bar.unit = "nm"
231
232
  viewer.theme = self.settings.theme_name
232
233
  viewer.create_initial_layers(image=True, roi=True, additional_layers=False, points=True)
233
234
  self.viewer_list.append(viewer)
@@ -11,13 +11,14 @@ from typing import TYPE_CHECKING, Optional, Union
11
11
  import napari
12
12
  import numpy as np
13
13
  from local_migrator import register_class
14
+ from napari._qt.widgets.qt_viewer_buttons import QtViewerPushButton
14
15
  from napari.components import ViewerModel as Viewer
15
16
  from napari.layers import Layer, Points
16
17
  from napari.layers.image import Image as NapariImage
17
18
  from napari.layers.labels import Labels
18
19
  from napari.qt import QtViewer
19
20
  from napari.qt.threading import thread_worker
20
- from napari.utils.colormaps.colormap import ColormapInterpolationMode
21
+ from napari.utils.colormaps import DirectLabelColormap
21
22
  from packaging.version import parse as parse_version
22
23
  from qtpy.QtCore import QEvent, QPoint, Qt, QTimer, Signal, Slot
23
24
  from qtpy.QtWidgets import QApplication, QCheckBox, QHBoxLayout, QLabel, QMenu, QSpinBox, QToolTip, QVBoxLayout, QWidget
@@ -38,13 +39,7 @@ from PartSegImage import Image
38
39
  if TYPE_CHECKING:
39
40
  from vispy.scene import BaseCamera
40
41
 
41
- try:
42
- from napari._qt.qt_viewer_buttons import QtViewerPushButton as QtViewerPushButton_
43
- except ImportError:
44
- from napari._qt.widgets.qt_viewer_buttons import QtViewerPushButton as QtViewerPushButton_
45
- _napari_ge_4_13 = parse_version(napari.__version__) >= parse_version("0.4.13a1")
46
- _napari_ge_4_17 = parse_version(napari.__version__) >= parse_version("0.4.17a1")
47
- _napari_ge_4_19 = parse_version(napari.__version__) >= parse_version("0.4.19")
42
+
48
43
  _napari_ge_5 = parse_version(napari.__version__) >= parse_version("0.5.0a1")
49
44
 
50
45
  # if run with numpy<2 on macOS arm64 architecture compiled from pypi wheels
@@ -69,46 +64,17 @@ class _NapariImage(NapariImage):
69
64
 
70
65
  def get_highlight_colormap():
71
66
  cmap_dict = {0: (0, 0, 0, 0), 1: "white", None: (0, 0, 0, 0)}
72
- if _napari_ge_5:
73
- from napari.utils.colormaps import DirectLabelColormap
74
-
75
- return {"colormap": DirectLabelColormap(color_dict=cmap_dict)}
76
-
77
- return {"color": cmap_dict}
78
-
79
-
80
- class QtViewerPushButton(QtViewerPushButton_):
81
- def __init__(self, viewer, *args, **kwargs):
82
- if _napari_ge_4_13:
83
- super().__init__(*args, **kwargs)
84
- else:
85
- super().__init__(viewer, *args, **kwargs)
86
-
67
+ return {"colormap": DirectLabelColormap(color_dict=cmap_dict)}
87
68
 
88
- if _napari_ge_4_13:
89
69
 
90
- class QtNDisplayButton(QtViewerPushButton_):
91
- def __init__(self, viewer):
92
- super().__init__(button_name="ndisplay_button", tooltip="Toggle dimensions", slot=self.toggle_ndisplay)
93
- self.viewer = viewer
94
- self.setCheckable(True)
95
-
96
- def toggle_ndisplay(self):
97
- self.viewer.dims.ndisplay = 2 + (self.viewer.dims.ndisplay == 2)
70
+ class QtNDisplayButton(QtViewerPushButton):
71
+ def __init__(self, viewer):
72
+ super().__init__(button_name="ndisplay_button", tooltip="Toggle dimensions", slot=self.toggle_ndisplay)
73
+ self.viewer = viewer
74
+ self.setCheckable(True)
98
75
 
99
- else:
100
- from napari.qt import QtStateButton
101
-
102
- class QtNDisplayButton(QtStateButton):
103
- def __init__(self, viewer):
104
- super().__init__(
105
- "ndisplay_button",
106
- viewer.dims,
107
- "ndisplay",
108
- viewer.dims.events.ndisplay,
109
- 2,
110
- 3,
111
- )
76
+ def toggle_ndisplay(self):
77
+ self.viewer.dims.ndisplay = 2 + (self.viewer.dims.ndisplay == 2)
112
78
 
113
79
 
114
80
  ORDER_DICT = {"xy": [0, 1, 2, 3], "zy": [0, 2, 1, 3], "zx": [0, 3, 1, 2]}
@@ -197,15 +163,13 @@ class ImageView(QWidget):
197
163
 
198
164
  self.channel_control = ColorComboBoxGroup(settings, name, channel_property, height=30)
199
165
  self.ndim_btn = QtNDisplayButton(self.viewer)
200
- self.reset_view_button = QtViewerPushButton(self.viewer, "home", "Reset view", self._reset_view)
201
- self.points_view_button = QtViewerPushButton(
202
- self.viewer, "new_points", "Show points", self.toggle_points_visibility
203
- )
166
+ self.reset_view_button = QtViewerPushButton("home", "Reset view", self._reset_view)
167
+ self.points_view_button = QtViewerPushButton("new_points", "Show points", self.toggle_points_visibility)
204
168
  self.points_view_button.setVisible(False)
205
169
  self.search_roi_btn = SearchROIButton(self.settings)
206
170
  self.search_roi_btn.clicked.connect(self._search_component)
207
171
  self.search_roi_btn.setDisabled(True)
208
- self.roll_dim_button = QtViewerPushButton(self.viewer, "roll", "Roll dimension", self._rotate_dim)
172
+ self.roll_dim_button = QtViewerPushButton("roll", "Roll dimension", self._rotate_dim)
209
173
  self.roll_dim_button.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
210
174
  self.roll_dim_button.customContextMenuRequested.connect(self._dim_order_menu)
211
175
  self.mask_chk = QCheckBox()
@@ -250,9 +214,8 @@ class ImageView(QWidget):
250
214
 
251
215
  if hasattr(self.viewer_widget.canvas, "background_color_override"):
252
216
  self.viewer_widget.canvas.background_color_override = "black"
253
- if _napari_ge_4_17:
254
- self.viewer.scale_bar.color = "white"
255
- self.viewer.scale_bar.colored = True
217
+ self.viewer.scale_bar.color = "white"
218
+ self.viewer.scale_bar.colored = True
256
219
 
257
220
  def _connect_to_settings(self):
258
221
  self.settings.mask_changed.connect(self.set_mask)
@@ -492,33 +455,7 @@ class ImageView(QWidget):
492
455
  return res
493
456
 
494
457
  def set_roi_colormap(self, image_info) -> None:
495
- if _napari_ge_4_19:
496
- from napari.utils.colormaps import DirectLabelColormap
497
-
498
- image_info.roi.colormap = DirectLabelColormap(color_dict=self.get_roi_view_parameters(image_info))
499
- return
500
- if _napari_ge_4_13:
501
- image_info.roi.color = self.get_roi_view_parameters(image_info)
502
- return
503
- colors = self.settings.label_colors / 255
504
- if (
505
- self.settings.get_from_profile(f"{self.name}.image_state.show_label", LabelEnum.Show_results)
506
- == LabelEnum.Not_show
507
- or image_info.roi_count == 0
508
- or colors.size == 0
509
- ):
510
- image_info.roi.colormap = Colormap([[0, 0, 0, 0], [0, 0, 0, 0]])
511
-
512
- res = [[*list(colors[(x - 1) % colors.shape[0]]), 1] for x in range(image_info.roi_count + 1)]
513
- res[0] = [0, 0, 0, 0]
514
- if len(res) < 2:
515
- res += [[0, 0, 0, 0] for _ in range(2 - len(res))]
516
-
517
- image_info.roi.colormap = Colormap(colors=res, interpolation=ColormapInterpolationMode.ZERO)
518
- max_val = image_info.roi_count + 1
519
- image_info.roi._all_vals = np.array( # pylint: disable=protected-access
520
- [0] + [(x + 1) / (max_val + 1) for x in range(1, max_val)]
521
- )
458
+ image_info.roi.colormap = DirectLabelColormap(color_dict=self.get_roi_view_parameters(image_info))
522
459
 
523
460
  def update_roi_coloring(self):
524
461
  for image_info in self.image_info.values():
@@ -598,12 +535,8 @@ class ImageView(QWidget):
598
535
  else:
599
536
  image_info.mask.data = mask_marker
600
537
  image_info.mask.metadata["valid"] = True
601
- if _napari_ge_4_19:
602
- from napari.utils.colormaps import DirectLabelColormap
538
+ image_info.mask.colormap = DirectLabelColormap(color_dict=self.mask_color())
603
539
 
604
- image_info.mask.colormap = DirectLabelColormap(color_dict=self.mask_color())
605
- else:
606
- image_info.mask.color = self.mask_color()
607
540
  image_info.mask.opacity = self.mask_opacity()
608
541
  image_info.mask.visible = self.mask_chk.isChecked()
609
542
  self._toggle_mask_chk_visibility()
@@ -622,12 +555,7 @@ class ImageView(QWidget):
622
555
  for image_info in self.image_info.values():
623
556
  if image_info.mask is not None:
624
557
  image_info.mask.opacity = opacity
625
- if _napari_ge_4_19:
626
- from napari.utils.colormaps import DirectLabelColormap
627
-
628
- image_info.mask.colormap = DirectLabelColormap(color_dict=colormap)
629
- else:
630
- image_info.mask.color = colormap
558
+ image_info.mask.colormap = DirectLabelColormap(color_dict=colormap)
631
559
 
632
560
  def set_image(self, image: Optional[Image] = None):
633
561
  self.image_info = {}
@@ -137,8 +137,8 @@ class QtConsole(RichJupyterWidget): # pylint: disable=abstract-method
137
137
 
138
138
  def _update_theme(self, event=None):
139
139
  """Update the napari GUI theme."""
140
- from napari.qt import get_stylesheet
141
- from napari.utils.theme import get_theme, template
140
+ from napari.qt import get_stylesheet # noqa: PLC0415
141
+ from napari.utils.theme import get_theme, template # noqa: PLC0415
142
142
 
143
143
  # qtconsole unfortunately won't inherit the parent stylesheet
144
144
  # so it needs to be directly set