PartSeg 0.16.2__tar.gz → 0.16.4__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 (313) hide show
  1. {partseg-0.16.2 → partseg-0.16.4}/MANIFEST.in +2 -0
  2. {partseg-0.16.2 → partseg-0.16.4}/PKG-INFO +97 -12
  3. {partseg-0.16.2 → partseg-0.16.4}/changelog.md +86 -0
  4. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_launcher/main_window.py +1 -1
  5. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +1 -1
  6. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/main_window.py +1 -1
  7. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/stack_settings.py +1 -0
  8. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/changelog.py +86 -0
  9. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/__init__.py +5 -1
  10. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/base_argparser.py +10 -9
  11. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/except_hook.py +2 -2
  12. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/algorithms_description.py +1 -1
  13. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/custom_save_dialog.py +4 -1
  14. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/main_window.py +1 -0
  15. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/multiple_file_widget.py +1 -1
  16. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/napari_image_view.py +20 -92
  17. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/qt_console.py +2 -2
  18. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/select_multiple_files.py +1 -1
  19. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/__init__.py +2 -2
  20. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/itk_snap_save/__init__.py +2 -2
  21. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/modeling_save/__init__.py +3 -3
  22. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/save_tiff_layer.py +2 -2
  23. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/lables_control.py +2 -7
  24. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/old_partseg/__init__.py +3 -3
  25. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/version.py +16 -3
  26. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg.egg-info/PKG-INFO +97 -12
  27. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg.egg-info/requires.txt +5 -5
  28. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/algorithm_describe_base.py +3 -3
  29. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/batch_processing/batch_backend.py +14 -8
  30. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +1 -1
  31. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/calculation_plan.py +1 -1
  32. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/measurement_base.py +11 -10
  33. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/measurement_calculation.py +2 -4
  34. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/class_generator.py +1 -2
  35. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/convex_fill.py +2 -2
  36. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/io_utils.py +1 -1
  37. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +2 -0
  38. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/sphinx/auto_parameters.py +2 -2
  39. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/universal_const.py +1 -1
  40. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/utils.py +1 -1
  41. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegImage/image.py +84 -15
  42. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegImage/image_reader.py +59 -5
  43. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegImage/image_writer.py +8 -1
  44. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegImage/tifffile_fixes.py +1 -1
  45. {partseg-0.16.2 → partseg-0.16.4}/package/tests/conftest.py +3 -1
  46. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_common_gui.py +34 -18
  47. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_napari_image_view.py +1 -2
  48. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_napari_widgets.py +4 -7
  49. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_sentry.py +17 -10
  50. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_viewer.py +5 -0
  51. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_window_import.py +3 -3
  52. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +6 -7
  53. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_analysis_batch.py +25 -8
  54. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_class_generator.py +3 -6
  55. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_json_hooks.py +1 -2
  56. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_measurements.py +1 -1
  57. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegImage/test_image.py +54 -2
  58. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegImage/test_image_writer.py +40 -6
  59. {partseg-0.16.2 → partseg-0.16.4}/pyproject.toml +35 -45
  60. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.10.txt +88 -89
  61. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.10_pydantic_1.txt +79 -79
  62. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.11.txt +91 -92
  63. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.11_pydantic_1.txt +83 -83
  64. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.12.txt +90 -90
  65. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.12_docs.txt +75 -76
  66. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.12_pydantic_1.txt +86 -86
  67. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.9.txt +73 -73
  68. {partseg-0.16.2 → partseg-0.16.4}/requirements/constraints_py3.9_pydantic_1.txt +71 -71
  69. partseg-0.16.4/requirements/pre_test_problematic_version.txt +3 -0
  70. {partseg-0.16.2 → partseg-0.16.4}/requirements/version_denylist.txt +1 -1
  71. partseg-0.16.2/requirements/pre_test_problematic_version.txt +0 -2
  72. {partseg-0.16.2 → partseg-0.16.4}/.napari/DESCRIPTION.md +0 -0
  73. {partseg-0.16.2 → partseg-0.16.4}/.napari/config.yml +0 -0
  74. {partseg-0.16.2 → partseg-0.16.4}/CITATION.cff +0 -0
  75. {partseg-0.16.2 → partseg-0.16.4}/License.txt +0 -0
  76. {partseg-0.16.2 → partseg-0.16.4}/Readme.md +0 -0
  77. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/__init__.py +0 -0
  78. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/__main__.py +0 -0
  79. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_launcher/__init__.py +0 -0
  80. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_launcher/check_survey.py +0 -0
  81. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_launcher/check_version.py +0 -0
  82. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/__init__.py +0 -0
  83. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
  84. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
  85. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
  86. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
  87. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/image_view.py +0 -0
  88. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/main_window.py +0 -0
  89. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
  90. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
  91. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
  92. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/__init__.py +0 -0
  93. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
  94. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/image_view.py +0 -0
  95. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
  96. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
  97. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/abstract_class.py +0 -0
  98. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/base_settings.py +0 -0
  99. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/load_backup.py +0 -0
  100. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
  101. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/progress_thread.py +0 -0
  102. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
  103. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
  104. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/__init__.py +0 -0
  105. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/about_dialog.py +0 -0
  106. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/advanced_tabs.py +0 -0
  107. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/channel_control.py +0 -0
  108. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
  109. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/colormap_creator.py +0 -0
  110. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/custom_buttons.py +0 -0
  111. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
  112. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/dict_viewer.py +0 -0
  113. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
  114. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/error_report.py +0 -0
  115. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/exception_hooks.py +0 -0
  116. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/flow_layout.py +0 -0
  117. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/icon_selector.py +0 -0
  118. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/image_adjustment.py +0 -0
  119. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/label_create.py +0 -0
  120. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
  121. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/mask_widget.py +0 -0
  122. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
  123. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
  124. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/qt_modal.py +0 -0
  125. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/qt_util.py +0 -0
  126. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
  127. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
  128. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
  129. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/stack_image_view.py +0 -0
  130. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
  131. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
  132. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
  133. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/launcher_main.py +0 -0
  134. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/napari.yaml +0 -0
  135. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
  136. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/__init__.py +0 -0
  137. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/load_image.py +0 -0
  138. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/load_mask_project.py +0 -0
  139. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/load_masked_image.py +0 -0
  140. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/load_roi_project.py +0 -0
  141. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/loader.py +0 -0
  142. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_io/save_mask_roi.py +0 -0
  143. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -0
  144. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
  145. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
  146. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
  147. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
  148. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
  149. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
  150. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +0 -0
  151. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
  152. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -0
  153. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +0 -0
  154. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/napari_widgets/utils.py +0 -0
  155. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
  156. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg/state_store.py +0 -0
  157. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg.egg-info/SOURCES.txt +0 -0
  158. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg.egg-info/dependency_links.txt +0 -0
  159. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg.egg-info/entry_points.txt +0 -0
  160. {partseg-0.16.2 → partseg-0.16.4}/package/PartSeg.egg-info/top_level.txt +0 -0
  161. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/__init__.py +0 -0
  162. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/_old_json_hooks.py +0 -0
  163. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/__init__.py +0 -0
  164. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/algorithm_description.py +0 -0
  165. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/analysis_utils.py +0 -0
  166. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
  167. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
  168. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/io_utils.py +0 -0
  169. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/load_functions.py +0 -0
  170. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/analysis/save_functions.py +0 -0
  171. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/autofit.py +0 -0
  172. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/channel_class.py +0 -0
  173. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/color_image/__init__.py +0 -0
  174. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/color_image/base_colors.py +0 -0
  175. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/color_image/color_data.py +0 -0
  176. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/custom_name_generate.py +0 -0
  177. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_operations.py +0 -0
  178. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_transforming/__init__.py +0 -0
  179. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
  180. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_transforming/image_projection.py +0 -0
  181. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
  182. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
  183. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/image_transforming/transform_base.py +0 -0
  184. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/json_hooks.py +0 -0
  185. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/mask/__init__.py +0 -0
  186. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/mask/algorithm_description.py +0 -0
  187. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/mask/history_utils.py +0 -0
  188. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/mask/io_functions.py +0 -0
  189. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/mask_create.py +0 -0
  190. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/mask_partition_utils.py +0 -0
  191. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/plugins/__init__.py +0 -0
  192. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/project_info.py +0 -0
  193. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/register.py +0 -0
  194. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/roi_info.py +0 -0
  195. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/__init__.py +0 -0
  196. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
  197. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
  198. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
  199. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
  200. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
  201. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/threshold.py +0 -0
  202. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/utils.py +0 -0
  203. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/segmentation/watershed.py +0 -0
  204. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegCore/sphinx/__init__.py +0 -0
  205. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegImage/__init__.py +0 -0
  206. {partseg-0.16.2 → partseg-0.16.4}/package/PartSegImage/channel_class.py +0 -0
  207. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/__init__.py +0 -0
  208. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/conftest.py +0 -0
  209. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
  210. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
  211. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
  212. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
  213. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
  214. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
  215. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
  216. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
  217. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
  218. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
  219. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
  220. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_analysis.py +0 -0
  221. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_base.py +0 -0
  222. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_base_widgets.py +0 -0
  223. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_channel_control.py +0 -0
  224. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_check_release.py +0 -0
  225. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_check_survey.py +0 -0
  226. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
  227. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_common_backend.py +0 -0
  228. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_io.py +0 -0
  229. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_label_choose.py +0 -0
  230. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_launcher.py +0 -0
  231. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_main_windows.py +0 -0
  232. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_napari_io.py +0 -0
  233. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_roi_analysis_batch.py +0 -0
  234. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSeg/test_settings.py +0 -0
  235. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/__init__.py +0 -0
  236. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
  237. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
  238. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
  239. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
  240. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_base.py +0 -0
  241. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_class_register.py +0 -0
  242. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_image_adjustment.py +0 -0
  243. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_io.py +0 -0
  244. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_mask_create.py +0 -0
  245. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
  246. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_min_req.py +0 -0
  247. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_mso.py +0 -0
  248. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
  249. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_segmentation.py +0 -0
  250. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
  251. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_smooth.py +0 -0
  252. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegCore/test_utils.py +0 -0
  253. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegImage/__init__.py +0 -0
  254. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
  255. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
  256. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
  257. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/measurements_profile.json +0 -0
  258. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/napari_measurements_profile.json +0 -0
  259. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
  260. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
  261. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/notebook/segment_data.json +0 -0
  262. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
  263. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
  264. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
  265. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
  266. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
  267. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
  268. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
  269. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
  270. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
  271. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
  272. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
  273. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
  274. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
  275. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
  276. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
  277. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
  278. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
  279. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
  280. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
  281. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
  282. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
  283. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
  284. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
  285. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
  286. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
  287. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
  288. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
  289. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
  290. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
  291. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
  292. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
  293. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
  294. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
  295. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
  296. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
  297. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
  298. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/ome.xsd.xml +0 -0
  299. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
  300. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/problematic_json_batch.json +0 -0
  301. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/problematic_profile_dict.json +0 -0
  302. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/range_profile.json +0 -0
  303. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/sample_batch_output.xlsx +0 -0
  304. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
  305. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
  306. {partseg-0.16.2 → partseg-0.16.4}/package/tests/test_data/workflow.json +0 -0
  307. {partseg-0.16.2 → partseg-0.16.4}/requirements/dependabot_runtime.txt +0 -0
  308. {partseg-0.16.2 → partseg-0.16.4}/requirements/pydantic_1.txt +0 -0
  309. {partseg-0.16.2 → partseg-0.16.4}/requirements/requirements_ci.txt +0 -0
  310. {partseg-0.16.2 → partseg-0.16.4}/requirements/requirements_dev.txt +0 -0
  311. {partseg-0.16.2 → partseg-0.16.4}/requirements/requirements_test.txt +0 -0
  312. {partseg-0.16.2 → partseg-0.16.4}/setup.cfg +0 -0
  313. {partseg-0.16.2 → partseg-0.16.4}/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/**
@@ -45,3 +46,4 @@ exclude cliff.toml
45
46
  exclude runtime.txt
46
47
  exclude .sourcery.yaml
47
48
  exclude survey_url.txt
49
+ exclude .typos.toml
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PartSeg
3
- Version: 0.16.2
3
+ Version: 0.16.4
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.4/PartSeg-0.16.4-windows.zip) (build on Windows 10)
154
+ - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4/PartSeg-0.16.4-linux.zip) (build on Ubuntu 20.04)
155
+ - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4/PartSeg-0.16.4-macos.zip) (build on macOS 13)
156
+ - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.4/PartSeg-0.16.4-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,92 @@ 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-21
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
+ - Add saving and reading of time scale in ImageJ and OME TIFF files ([#1323](https://github.com/4DNucleome/PartSeg/pull/1323))
253
+
254
+ #### 🐛 Bug Fixes
255
+
256
+ - Fit ROI shape to image to solve problem of saving data in batch process ([#1288](https://github.com/4DNucleome/PartSeg/pull/1288))
257
+ - If save dialog is used to select directory save it in history not parent ([#1289](https://github.com/4DNucleome/PartSeg/pull/1289))
258
+ - Fix `--pre` test by stopping using the deprecated `sentry_sdk` method ([#1304](https://github.com/4DNucleome/PartSeg/pull/1304))
259
+ - Fix saving in batch if the data is mask segmentation project ([#1309](https://github.com/4DNucleome/PartSeg/pull/1309))
260
+ - Clean elements outside mask for multiple otsu method ([#1319](https://github.com/4DNucleome/PartSeg/pull/1319))
261
+
262
+ #### 📚 Documentation
263
+
264
+ - Update changelog for 0.16.4
265
+
266
+ #### 🧪 Testing
267
+
268
+ - [Automatic] Constraints upgrades: `pandas` ([#1285](https://github.com/4DNucleome/PartSeg/pull/1285))
269
+ - [Automatic] Constraints upgrades: `ipykernel`, `numpy`, `scipy`, `sentry-sdk` ([#1287](https://github.com/4DNucleome/PartSeg/pull/1287))
270
+ - [Automatic] Constraints upgrades: `imagecodecs`, `ipykernel`, `napari`, `sentry-sdk` ([#1290](https://github.com/4DNucleome/PartSeg/pull/1290))
271
+ - [Automatic] Constraints upgrades: `napari`, `psygnal`, `sentry-sdk`, `superqt` ([#1295](https://github.com/4DNucleome/PartSeg/pull/1295))
272
+ - [Automatic] Constraints upgrades: `pandas`, `requests` ([#1297](https://github.com/4DNucleome/PartSeg/pull/1297))
273
+ - [Automatic] Constraints upgrades: `ipython`, `numpy`, `pydantic`, `qtconsole`, `scipy`, `sentry-sdk`, `tifffile`, `xlsxwriter` ([#1301](https://github.com/4DNucleome/PartSeg/pull/1301))
274
+ - [Automatic] Constraints upgrades: `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1305](https://github.com/4DNucleome/PartSeg/pull/1305))
275
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `pandas`, `pydantic`, `tifffile` ([#1311](https://github.com/4DNucleome/PartSeg/pull/1311))
276
+ - [Automatic] Constraints upgrades: `pydantic`, `sentry-sdk` ([#1316](https://github.com/4DNucleome/PartSeg/pull/1316))
277
+ - [Automatic] Constraints upgrades: `h5py`, `ipykernel`, `numpy`, `psygnal`, `pydantic`, `sentry-sdk`, `tifffile` ([#1322](https://github.com/4DNucleome/PartSeg/pull/1322))
278
+
279
+ #### ⚙️ Miscellaneous Tasks
280
+
281
+ - [pre-commit.ci] pre-commit autoupdate ([#1286](https://github.com/4DNucleome/PartSeg/pull/1286))
282
+ - [pre-commit.ci] pre-commit autoupdate ([#1291](https://github.com/4DNucleome/PartSeg/pull/1291))
283
+ - [pre-commit.ci] pre-commit autoupdate ([#1296](https://github.com/4DNucleome/PartSeg/pull/1296))
284
+ - [pre-commit.ci] pre-commit autoupdate ([#1298](https://github.com/4DNucleome/PartSeg/pull/1298))
285
+ - Add more wait on coderabbit review ([#1300](https://github.com/4DNucleome/PartSeg/pull/1300))
286
+ - Use prek for initial check of code format ([#1299](https://github.com/4DNucleome/PartSeg/pull/1299))
287
+ - [pre-commit.ci] pre-commit autoupdate ([#1302](https://github.com/4DNucleome/PartSeg/pull/1302))
288
+ - Use most recent macOS images on GitHub Actions ([#1310](https://github.com/4DNucleome/PartSeg/pull/1310))
289
+ - [pre-commit.ci] pre-commit autoupdate ([#1306](https://github.com/4DNucleome/PartSeg/pull/1306))
290
+ - [pre-commit.ci] pre-commit autoupdate ([#1313](https://github.com/4DNucleome/PartSeg/pull/1313))
291
+ - Add cooldown of dependabot PR ([#1317](https://github.com/4DNucleome/PartSeg/pull/1317))
292
+ - Update licensing metadata to follow modern standards ([#1314](https://github.com/4DNucleome/PartSeg/pull/1314))
293
+ - Make test log more readable by using 120 columns and colors ([#1320](https://github.com/4DNucleome/PartSeg/pull/1320))
294
+ - [pre-commit.ci] pre-commit autoupdate ([#1318](https://github.com/4DNucleome/PartSeg/pull/1318))
295
+ - Add changelog for 0.16.4 ([#1321](https://github.com/4DNucleome/PartSeg/pull/1321))
296
+ - Use ruff formatter in place of black ([#1324](https://github.com/4DNucleome/PartSeg/pull/1324))
297
+
298
+ #### 🛡️ Security
299
+
300
+ - *(deps)* Bump actions/download-artifact from 4 to 5 in the github-actions group ([#1292](https://github.com/4DNucleome/PartSeg/pull/1292))
301
+ - *(deps)* Bump pyvista/setup-headless-display-action from 3 to 4 ([#1294](https://github.com/4DNucleome/PartSeg/pull/1294))
302
+ - *(deps)* Bump actions/checkout from 4 to 5 in the github-actions group ([#1293](https://github.com/4DNucleome/PartSeg/pull/1293))
303
+ - *(deps)* Bump actions/setup-python from 5 to 6 in the github-actions group ([#1303](https://github.com/4DNucleome/PartSeg/pull/1303))
304
+ - *(deps)* Bump github/codeql-action from 3 to 4 ([#1315](https://github.com/4DNucleome/PartSeg/pull/1315))
305
+
306
+ ### 0.16.3 - 2025-07-10
307
+
308
+ #### 🐛 Bug Fixes
309
+
310
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
311
+
312
+ #### 🧪 Testing
313
+
314
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
315
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
316
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
317
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
318
+
319
+ #### ⚙️ Miscellaneous Tasks
320
+
321
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
322
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
323
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
324
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
325
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
326
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
327
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
328
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
329
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
330
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
331
+
247
332
  ### 0.16.2 - 2025-05-12
248
333
 
249
334
  #### 🧪 Testing
@@ -2,6 +2,92 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.16.4 - 2025-10-21
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
+ - Add saving and reading of time scale in ImageJ and OME TIFF files ([#1323](https://github.com/4DNucleome/PartSeg/pull/1323))
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
+ ### 📚 Documentation
22
+
23
+ - Update changelog for 0.16.4
24
+
25
+ ### 🧪 Testing
26
+
27
+ - [Automatic] Constraints upgrades: `pandas` ([#1285](https://github.com/4DNucleome/PartSeg/pull/1285))
28
+ - [Automatic] Constraints upgrades: `ipykernel`, `numpy`, `scipy`, `sentry-sdk` ([#1287](https://github.com/4DNucleome/PartSeg/pull/1287))
29
+ - [Automatic] Constraints upgrades: `imagecodecs`, `ipykernel`, `napari`, `sentry-sdk` ([#1290](https://github.com/4DNucleome/PartSeg/pull/1290))
30
+ - [Automatic] Constraints upgrades: `napari`, `psygnal`, `sentry-sdk`, `superqt` ([#1295](https://github.com/4DNucleome/PartSeg/pull/1295))
31
+ - [Automatic] Constraints upgrades: `pandas`, `requests` ([#1297](https://github.com/4DNucleome/PartSeg/pull/1297))
32
+ - [Automatic] Constraints upgrades: `ipython`, `numpy`, `pydantic`, `qtconsole`, `scipy`, `sentry-sdk`, `tifffile`, `xlsxwriter` ([#1301](https://github.com/4DNucleome/PartSeg/pull/1301))
33
+ - [Automatic] Constraints upgrades: `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1305](https://github.com/4DNucleome/PartSeg/pull/1305))
34
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `pandas`, `pydantic`, `tifffile` ([#1311](https://github.com/4DNucleome/PartSeg/pull/1311))
35
+ - [Automatic] Constraints upgrades: `pydantic`, `sentry-sdk` ([#1316](https://github.com/4DNucleome/PartSeg/pull/1316))
36
+ - [Automatic] Constraints upgrades: `h5py`, `ipykernel`, `numpy`, `psygnal`, `pydantic`, `sentry-sdk`, `tifffile` ([#1322](https://github.com/4DNucleome/PartSeg/pull/1322))
37
+
38
+ ### ⚙️ Miscellaneous Tasks
39
+
40
+ - [pre-commit.ci] pre-commit autoupdate ([#1286](https://github.com/4DNucleome/PartSeg/pull/1286))
41
+ - [pre-commit.ci] pre-commit autoupdate ([#1291](https://github.com/4DNucleome/PartSeg/pull/1291))
42
+ - [pre-commit.ci] pre-commit autoupdate ([#1296](https://github.com/4DNucleome/PartSeg/pull/1296))
43
+ - [pre-commit.ci] pre-commit autoupdate ([#1298](https://github.com/4DNucleome/PartSeg/pull/1298))
44
+ - Add more wait on coderabbit review ([#1300](https://github.com/4DNucleome/PartSeg/pull/1300))
45
+ - Use prek for initial check of code format ([#1299](https://github.com/4DNucleome/PartSeg/pull/1299))
46
+ - [pre-commit.ci] pre-commit autoupdate ([#1302](https://github.com/4DNucleome/PartSeg/pull/1302))
47
+ - Use most recent macOS images on GitHub Actions ([#1310](https://github.com/4DNucleome/PartSeg/pull/1310))
48
+ - [pre-commit.ci] pre-commit autoupdate ([#1306](https://github.com/4DNucleome/PartSeg/pull/1306))
49
+ - [pre-commit.ci] pre-commit autoupdate ([#1313](https://github.com/4DNucleome/PartSeg/pull/1313))
50
+ - Add cooldown of dependabot PR ([#1317](https://github.com/4DNucleome/PartSeg/pull/1317))
51
+ - Update licensing metadata to follow modern standards ([#1314](https://github.com/4DNucleome/PartSeg/pull/1314))
52
+ - Make test log more readable by using 120 columns and colors ([#1320](https://github.com/4DNucleome/PartSeg/pull/1320))
53
+ - [pre-commit.ci] pre-commit autoupdate ([#1318](https://github.com/4DNucleome/PartSeg/pull/1318))
54
+ - Add changelog for 0.16.4 ([#1321](https://github.com/4DNucleome/PartSeg/pull/1321))
55
+ - Use ruff formatter in place of black ([#1324](https://github.com/4DNucleome/PartSeg/pull/1324))
56
+
57
+ ### 🛡️ Security
58
+
59
+ - *(deps)* Bump actions/download-artifact from 4 to 5 in the github-actions group ([#1292](https://github.com/4DNucleome/PartSeg/pull/1292))
60
+ - *(deps)* Bump pyvista/setup-headless-display-action from 3 to 4 ([#1294](https://github.com/4DNucleome/PartSeg/pull/1294))
61
+ - *(deps)* Bump actions/checkout from 4 to 5 in the github-actions group ([#1293](https://github.com/4DNucleome/PartSeg/pull/1293))
62
+ - *(deps)* Bump actions/setup-python from 5 to 6 in the github-actions group ([#1303](https://github.com/4DNucleome/PartSeg/pull/1303))
63
+ - *(deps)* Bump github/codeql-action from 3 to 4 ([#1315](https://github.com/4DNucleome/PartSeg/pull/1315))
64
+
65
+ ## 0.16.3 - 2025-07-10
66
+
67
+ ### 🐛 Bug Fixes
68
+
69
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
70
+
71
+ ### 🧪 Testing
72
+
73
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
74
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
75
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
76
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
77
+
78
+ ### ⚙️ Miscellaneous Tasks
79
+
80
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
81
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
82
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
83
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
84
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
85
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
86
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
87
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
88
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
89
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
90
+
5
91
  ## 0.16.2 - 2025-05-12
6
92
 
7
93
  ### 🧪 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)
@@ -867,7 +867,7 @@ class CreatePlan(QWidget):
867
867
  conflict_mask, used_mask = self.calculation_plan.get_file_mask_names()
868
868
  if len(conflict_mask) > 0:
869
869
  logging.info("Mask in use")
870
- show_warning("In use", f'Masks {", ".join(conflict_mask)} are used in other places')
870
+ show_warning("In use", f"Masks {', '.join(conflict_mask)} are used in other places")
871
871
 
872
872
  return
873
873
  self.mask_set -= used_mask
@@ -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,92 @@ 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-21
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
+ - Add saving and reading of time scale in ImageJ and OME TIFF files ([#1323](https://github.com/4DNucleome/PartSeg/pull/1323))
13
+
14
+ ### 🐛 Bug Fixes
15
+
16
+ - Fit ROI shape to image to solve problem of saving data in batch process ([#1288](https://github.com/4DNucleome/PartSeg/pull/1288))
17
+ - If save dialog is used to select directory save it in history not parent ([#1289](https://github.com/4DNucleome/PartSeg/pull/1289))
18
+ - Fix `--pre` test by stopping using the deprecated `sentry_sdk` method ([#1304](https://github.com/4DNucleome/PartSeg/pull/1304))
19
+ - Fix saving in batch if the data is mask segmentation project ([#1309](https://github.com/4DNucleome/PartSeg/pull/1309))
20
+ - Clean elements outside mask for multiple otsu method ([#1319](https://github.com/4DNucleome/PartSeg/pull/1319))
21
+
22
+ ### 📚 Documentation
23
+
24
+ - Update changelog for 0.16.4
25
+
26
+ ### 🧪 Testing
27
+
28
+ - [Automatic] Constraints upgrades: `pandas` ([#1285](https://github.com/4DNucleome/PartSeg/pull/1285))
29
+ - [Automatic] Constraints upgrades: `ipykernel`, `numpy`, `scipy`, `sentry-sdk` ([#1287](https://github.com/4DNucleome/PartSeg/pull/1287))
30
+ - [Automatic] Constraints upgrades: `imagecodecs`, `ipykernel`, `napari`, `sentry-sdk` ([#1290](https://github.com/4DNucleome/PartSeg/pull/1290))
31
+ - [Automatic] Constraints upgrades: `napari`, `psygnal`, `sentry-sdk`, `superqt` ([#1295](https://github.com/4DNucleome/PartSeg/pull/1295))
32
+ - [Automatic] Constraints upgrades: `pandas`, `requests` ([#1297](https://github.com/4DNucleome/PartSeg/pull/1297))
33
+ - [Automatic] Constraints upgrades: `ipython`, `numpy`, `pydantic`, `qtconsole`, `scipy`, `sentry-sdk`, `tifffile`, `xlsxwriter` ([#1301](https://github.com/4DNucleome/PartSeg/pull/1301))
34
+ - [Automatic] Constraints upgrades: `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1305](https://github.com/4DNucleome/PartSeg/pull/1305))
35
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `pandas`, `pydantic`, `tifffile` ([#1311](https://github.com/4DNucleome/PartSeg/pull/1311))
36
+ - [Automatic] Constraints upgrades: `pydantic`, `sentry-sdk` ([#1316](https://github.com/4DNucleome/PartSeg/pull/1316))
37
+ - [Automatic] Constraints upgrades: `h5py`, `ipykernel`, `numpy`, `psygnal`, `pydantic`, `sentry-sdk`, `tifffile` ([#1322](https://github.com/4DNucleome/PartSeg/pull/1322))
38
+
39
+ ### ⚙️ Miscellaneous Tasks
40
+
41
+ - [pre-commit.ci] pre-commit autoupdate ([#1286](https://github.com/4DNucleome/PartSeg/pull/1286))
42
+ - [pre-commit.ci] pre-commit autoupdate ([#1291](https://github.com/4DNucleome/PartSeg/pull/1291))
43
+ - [pre-commit.ci] pre-commit autoupdate ([#1296](https://github.com/4DNucleome/PartSeg/pull/1296))
44
+ - [pre-commit.ci] pre-commit autoupdate ([#1298](https://github.com/4DNucleome/PartSeg/pull/1298))
45
+ - Add more wait on coderabbit review ([#1300](https://github.com/4DNucleome/PartSeg/pull/1300))
46
+ - Use prek for initial check of code format ([#1299](https://github.com/4DNucleome/PartSeg/pull/1299))
47
+ - [pre-commit.ci] pre-commit autoupdate ([#1302](https://github.com/4DNucleome/PartSeg/pull/1302))
48
+ - Use most recent macOS images on GitHub Actions ([#1310](https://github.com/4DNucleome/PartSeg/pull/1310))
49
+ - [pre-commit.ci] pre-commit autoupdate ([#1306](https://github.com/4DNucleome/PartSeg/pull/1306))
50
+ - [pre-commit.ci] pre-commit autoupdate ([#1313](https://github.com/4DNucleome/PartSeg/pull/1313))
51
+ - Add cooldown of dependabot PR ([#1317](https://github.com/4DNucleome/PartSeg/pull/1317))
52
+ - Update licensing metadata to follow modern standards ([#1314](https://github.com/4DNucleome/PartSeg/pull/1314))
53
+ - Make test log more readable by using 120 columns and colors ([#1320](https://github.com/4DNucleome/PartSeg/pull/1320))
54
+ - [pre-commit.ci] pre-commit autoupdate ([#1318](https://github.com/4DNucleome/PartSeg/pull/1318))
55
+ - Add changelog for 0.16.4 ([#1321](https://github.com/4DNucleome/PartSeg/pull/1321))
56
+ - Use ruff formatter in place of black ([#1324](https://github.com/4DNucleome/PartSeg/pull/1324))
57
+
58
+ ### 🛡️ Security
59
+
60
+ - *(deps)* Bump actions/download-artifact from 4 to 5 in the github-actions group ([#1292](https://github.com/4DNucleome/PartSeg/pull/1292))
61
+ - *(deps)* Bump pyvista/setup-headless-display-action from 3 to 4 ([#1294](https://github.com/4DNucleome/PartSeg/pull/1294))
62
+ - *(deps)* Bump actions/checkout from 4 to 5 in the github-actions group ([#1293](https://github.com/4DNucleome/PartSeg/pull/1293))
63
+ - *(deps)* Bump actions/setup-python from 5 to 6 in the github-actions group ([#1303](https://github.com/4DNucleome/PartSeg/pull/1303))
64
+ - *(deps)* Bump github/codeql-action from 3 to 4 ([#1315](https://github.com/4DNucleome/PartSeg/pull/1315))
65
+
66
+ ## 0.16.3 - 2025-07-10
67
+
68
+ ### 🐛 Bug Fixes
69
+
70
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
71
+
72
+ ### 🧪 Testing
73
+
74
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
75
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
76
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
77
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
78
+
79
+ ### ⚙️ Miscellaneous Tasks
80
+
81
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
82
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
83
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
84
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
85
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
86
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
87
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
88
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
89
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
90
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
91
+
6
92
  ## 0.16.2 - 2025-05-12
7
93
 
8
94
  ### 🧪 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:
@@ -70,7 +70,7 @@ def _pretty_print(data, indent=2) -> str:
70
70
  if isinstance(data, typing.Mapping):
71
71
  res = "\n"
72
72
  for k, v in data.items():
73
- res += f"{' ' * indent}{k}: {_pretty_print(v, indent+2)}\n"
73
+ res += f"{' ' * indent}{k}: {_pretty_print(v, indent + 2)}\n"
74
74
  return res[:-1]
75
75
  return str(data)
76
76
 
@@ -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)
@@ -264,7 +264,7 @@ class MultipleFileWidget(QWidget):
264
264
  return
265
265
  normed_file_path = os.path.normpath(state.file_path)
266
266
  sub_dict = self.state_dict[normed_file_path]
267
- name = f"state {self.state_dict_count[normed_file_path]+1}"
267
+ name = f"state {self.state_dict_count[normed_file_path] + 1}"
268
268
  if custom_name:
269
269
  name, ok = QInputDialog.getText(self, "Save name", "Save name:", text=name)
270
270
  if not ok: