PartSeg 0.16.2__tar.gz → 0.16.3__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 (312) hide show
  1. {partseg-0.16.2 → partseg-0.16.3}/PKG-INFO +31 -5
  2. {partseg-0.16.2 → partseg-0.16.3}/changelog.md +26 -0
  3. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_launcher/main_window.py +1 -1
  4. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/changelog.py +26 -0
  5. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/__init__.py +1 -1
  6. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/except_hook.py +2 -2
  7. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/napari_image_view.py +19 -91
  8. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/qt_console.py +2 -2
  9. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/select_multiple_files.py +1 -1
  10. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/__init__.py +2 -2
  11. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/itk_snap_save/__init__.py +2 -2
  12. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/modeling_save/__init__.py +3 -3
  13. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/lables_control.py +2 -7
  14. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/old_partseg/__init__.py +3 -3
  15. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/version.py +2 -2
  16. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg.egg-info/PKG-INFO +31 -5
  17. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/algorithm_describe_base.py +3 -3
  18. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/batch_processing/batch_backend.py +2 -2
  19. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +1 -1
  20. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/calculation_plan.py +1 -1
  21. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/measurement_base.py +3 -9
  22. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/measurement_calculation.py +1 -1
  23. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/convex_fill.py +2 -2
  24. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/io_utils.py +1 -1
  25. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/universal_const.py +1 -1
  26. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/utils.py +1 -1
  27. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegImage/image_reader.py +1 -1
  28. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegImage/tifffile_fixes.py +1 -1
  29. {partseg-0.16.2 → partseg-0.16.3}/package/tests/conftest.py +3 -1
  30. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_common_gui.py +4 -12
  31. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_napari_image_view.py +1 -2
  32. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_napari_widgets.py +4 -7
  33. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_window_import.py +3 -3
  34. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_class_generator.py +3 -6
  35. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_json_hooks.py +1 -2
  36. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_measurements.py +1 -1
  37. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegImage/test_image.py +1 -1
  38. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegImage/test_image_writer.py +1 -1
  39. {partseg-0.16.2 → partseg-0.16.3}/pyproject.toml +9 -3
  40. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.10.txt +48 -47
  41. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.10_pydantic_1.txt +44 -43
  42. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.11.txt +51 -50
  43. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.11_pydantic_1.txt +47 -46
  44. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.12.txt +54 -53
  45. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.12_docs.txt +41 -43
  46. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.12_pydantic_1.txt +50 -49
  47. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.9.txt +42 -41
  48. {partseg-0.16.2 → partseg-0.16.3}/requirements/constraints_py3.9_pydantic_1.txt +40 -39
  49. {partseg-0.16.2 → partseg-0.16.3}/requirements/pre_test_problematic_version.txt +1 -0
  50. {partseg-0.16.2 → partseg-0.16.3}/requirements/version_denylist.txt +1 -1
  51. {partseg-0.16.2 → partseg-0.16.3}/.napari/DESCRIPTION.md +0 -0
  52. {partseg-0.16.2 → partseg-0.16.3}/.napari/config.yml +0 -0
  53. {partseg-0.16.2 → partseg-0.16.3}/CITATION.cff +0 -0
  54. {partseg-0.16.2 → partseg-0.16.3}/License.txt +0 -0
  55. {partseg-0.16.2 → partseg-0.16.3}/MANIFEST.in +0 -0
  56. {partseg-0.16.2 → partseg-0.16.3}/Readme.md +0 -0
  57. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/__init__.py +0 -0
  58. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/__main__.py +0 -0
  59. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_launcher/__init__.py +0 -0
  60. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_launcher/check_survey.py +0 -0
  61. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_launcher/check_version.py +0 -0
  62. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/__init__.py +0 -0
  63. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
  64. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
  65. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
  66. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
  67. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/image_view.py +0 -0
  68. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/main_window.py +0 -0
  69. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
  70. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
  71. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
  72. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
  73. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/__init__.py +0 -0
  74. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
  75. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/image_view.py +0 -0
  76. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/main_window.py +0 -0
  77. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
  78. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
  79. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/_roi_mask/stack_settings.py +0 -0
  80. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/abstract_class.py +0 -0
  81. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/base_argparser.py +0 -0
  82. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/base_settings.py +0 -0
  83. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/load_backup.py +0 -0
  84. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
  85. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/progress_thread.py +0 -0
  86. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
  87. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
  88. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/__init__.py +0 -0
  89. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/about_dialog.py +0 -0
  90. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/advanced_tabs.py +0 -0
  91. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/algorithms_description.py +0 -0
  92. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/channel_control.py +0 -0
  93. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
  94. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/colormap_creator.py +0 -0
  95. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/custom_buttons.py +0 -0
  96. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
  97. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/custom_save_dialog.py +0 -0
  98. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/dict_viewer.py +0 -0
  99. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
  100. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/error_report.py +0 -0
  101. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/exception_hooks.py +0 -0
  102. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/flow_layout.py +0 -0
  103. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/icon_selector.py +0 -0
  104. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/image_adjustment.py +0 -0
  105. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/label_create.py +0 -0
  106. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
  107. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/main_window.py +0 -0
  108. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/mask_widget.py +0 -0
  109. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
  110. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
  111. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
  112. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/qt_modal.py +0 -0
  113. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/qt_util.py +0 -0
  114. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
  115. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
  116. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
  117. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/stack_image_view.py +0 -0
  118. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
  119. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
  120. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
  121. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/launcher_main.py +0 -0
  122. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/napari.yaml +0 -0
  123. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
  124. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/__init__.py +0 -0
  125. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/load_image.py +0 -0
  126. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/load_mask_project.py +0 -0
  127. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/load_masked_image.py +0 -0
  128. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/load_roi_project.py +0 -0
  129. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/loader.py +0 -0
  130. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/save_mask_roi.py +0 -0
  131. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_io/save_tiff_layer.py +0 -0
  132. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -0
  133. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
  134. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
  135. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
  136. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
  137. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
  138. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
  139. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +0 -0
  140. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
  141. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -0
  142. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +0 -0
  143. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/napari_widgets/utils.py +0 -0
  144. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
  145. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg/state_store.py +0 -0
  146. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg.egg-info/SOURCES.txt +0 -0
  147. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg.egg-info/dependency_links.txt +0 -0
  148. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg.egg-info/entry_points.txt +0 -0
  149. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg.egg-info/requires.txt +0 -0
  150. {partseg-0.16.2 → partseg-0.16.3}/package/PartSeg.egg-info/top_level.txt +0 -0
  151. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/__init__.py +0 -0
  152. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/_old_json_hooks.py +0 -0
  153. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/__init__.py +0 -0
  154. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/algorithm_description.py +0 -0
  155. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/analysis_utils.py +0 -0
  156. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
  157. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
  158. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/io_utils.py +0 -0
  159. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/load_functions.py +0 -0
  160. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/analysis/save_functions.py +0 -0
  161. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/autofit.py +0 -0
  162. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/channel_class.py +0 -0
  163. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/class_generator.py +0 -0
  164. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/color_image/__init__.py +0 -0
  165. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/color_image/base_colors.py +0 -0
  166. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/color_image/color_data.py +0 -0
  167. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/custom_name_generate.py +0 -0
  168. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_operations.py +0 -0
  169. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_transforming/__init__.py +0 -0
  170. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
  171. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_transforming/image_projection.py +0 -0
  172. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
  173. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
  174. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/image_transforming/transform_base.py +0 -0
  175. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/json_hooks.py +0 -0
  176. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/mask/__init__.py +0 -0
  177. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/mask/algorithm_description.py +0 -0
  178. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/mask/history_utils.py +0 -0
  179. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/mask/io_functions.py +0 -0
  180. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/mask_create.py +0 -0
  181. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/mask_partition_utils.py +0 -0
  182. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/plugins/__init__.py +0 -0
  183. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/project_info.py +0 -0
  184. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/register.py +0 -0
  185. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/roi_info.py +0 -0
  186. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/__init__.py +0 -0
  187. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
  188. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
  189. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
  190. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
  191. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +0 -0
  192. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
  193. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/threshold.py +0 -0
  194. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/utils.py +0 -0
  195. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/segmentation/watershed.py +0 -0
  196. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/sphinx/__init__.py +0 -0
  197. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
  198. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegImage/__init__.py +0 -0
  199. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegImage/channel_class.py +0 -0
  200. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegImage/image.py +0 -0
  201. {partseg-0.16.2 → partseg-0.16.3}/package/PartSegImage/image_writer.py +0 -0
  202. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/__init__.py +0 -0
  203. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/conftest.py +0 -0
  204. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
  205. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
  206. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
  207. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
  208. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
  209. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
  210. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
  211. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
  212. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
  213. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
  214. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
  215. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_analysis.py +0 -0
  216. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_base.py +0 -0
  217. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_base_widgets.py +0 -0
  218. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_channel_control.py +0 -0
  219. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_check_release.py +0 -0
  220. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_check_survey.py +0 -0
  221. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
  222. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_common_backend.py +0 -0
  223. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_io.py +0 -0
  224. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_label_choose.py +0 -0
  225. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_launcher.py +0 -0
  226. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_main_windows.py +0 -0
  227. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_napari_io.py +0 -0
  228. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_roi_analysis_batch.py +0 -0
  229. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_sentry.py +0 -0
  230. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_settings.py +0 -0
  231. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSeg/test_viewer.py +0 -0
  232. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/__init__.py +0 -0
  233. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
  234. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
  235. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
  236. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
  237. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +0 -0
  238. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_analysis_batch.py +0 -0
  239. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_base.py +0 -0
  240. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_class_register.py +0 -0
  241. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_image_adjustment.py +0 -0
  242. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_io.py +0 -0
  243. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_mask_create.py +0 -0
  244. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
  245. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_min_req.py +0 -0
  246. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_mso.py +0 -0
  247. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
  248. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_segmentation.py +0 -0
  249. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
  250. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_smooth.py +0 -0
  251. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegCore/test_utils.py +0 -0
  252. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegImage/__init__.py +0 -0
  253. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
  254. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
  255. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
  256. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/measurements_profile.json +0 -0
  257. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/napari_measurements_profile.json +0 -0
  258. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
  259. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
  260. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/notebook/segment_data.json +0 -0
  261. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
  262. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
  263. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
  264. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
  265. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
  266. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
  267. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
  268. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
  269. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
  270. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
  271. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
  272. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
  273. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
  274. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
  275. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
  276. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
  277. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
  278. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
  279. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
  280. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
  281. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
  282. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
  283. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
  284. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
  285. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
  286. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
  287. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
  288. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
  289. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
  290. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
  291. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
  292. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
  293. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
  294. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
  295. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
  296. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
  297. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/ome.xsd.xml +0 -0
  298. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
  299. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/problematic_json_batch.json +0 -0
  300. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/problematic_profile_dict.json +0 -0
  301. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/range_profile.json +0 -0
  302. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/sample_batch_output.xlsx +0 -0
  303. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
  304. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
  305. {partseg-0.16.2 → partseg-0.16.3}/package/tests/test_data/workflow.json +0 -0
  306. {partseg-0.16.2 → partseg-0.16.3}/requirements/dependabot_runtime.txt +0 -0
  307. {partseg-0.16.2 → partseg-0.16.3}/requirements/pydantic_1.txt +0 -0
  308. {partseg-0.16.2 → partseg-0.16.3}/requirements/requirements_ci.txt +0 -0
  309. {partseg-0.16.2 → partseg-0.16.3}/requirements/requirements_dev.txt +0 -0
  310. {partseg-0.16.2 → partseg-0.16.3}/requirements/requirements_test.txt +0 -0
  311. {partseg-0.16.2 → partseg-0.16.3}/setup.cfg +0 -0
  312. {partseg-0.16.2 → partseg-0.16.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PartSeg
3
- Version: 0.16.2
3
+ Version: 0.16.3
4
4
  Summary: PartSeg is python GUI and set of napari plugins for bio imaging analysis especially nucleus analysis,
5
5
  Author-email: Grzegorz Bokota <g.bokota@uw.edu.pl>
6
6
  License: BSD-3-Clause
@@ -151,10 +151,10 @@ This application is designed to help biologist with segmentation based on thresh
151
151
 
152
152
  - From binaries:
153
153
 
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)
154
+ - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-windows.zip) (build on Windows 10)
155
+ - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-linux.zip) (build on Ubuntu 20.04)
156
+ - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-macos.zip) (build on macOS 13)
157
+ - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-macos-arm64.zip) (build on macOS 14)
158
158
  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
159
 
160
160
  - With pip:
@@ -244,6 +244,32 @@ from 3D microscopy images for dummies. BMC Bioinformatics 22, 72 (2021).
244
244
 
245
245
  All notable changes to this project will be documented in this file.
246
246
 
247
+ ### 0.16.3 - 2025-07-10
248
+
249
+ #### 🐛 Bug Fixes
250
+
251
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
252
+
253
+ #### 🧪 Testing
254
+
255
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
256
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
257
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
258
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
259
+
260
+ #### ⚙️ Miscellaneous Tasks
261
+
262
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
263
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
264
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
265
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
266
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
267
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
268
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
269
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
270
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
271
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
272
+
247
273
  ### 0.16.2 - 2025-05-12
248
274
 
249
275
  #### 🧪 Testing
@@ -2,6 +2,32 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.16.3 - 2025-07-10
6
+
7
+ ### 🐛 Bug Fixes
8
+
9
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
10
+
11
+ ### 🧪 Testing
12
+
13
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
14
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
15
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
16
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
17
+
18
+ ### ⚙️ Miscellaneous Tasks
19
+
20
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
21
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
22
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
23
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
24
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
25
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
26
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
27
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
28
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
29
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
30
+
5
31
  ## 0.16.2 - 2025-05-12
6
32
 
7
33
  ### 🧪 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)
@@ -3,6 +3,32 @@ changelog = """
3
3
 
4
4
  All notable changes to this project will be documented in this file.
5
5
 
6
+ ## 0.16.3 - 2025-07-10
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
11
+
12
+ ### 🧪 Testing
13
+
14
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
15
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
16
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
17
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
18
+
19
+ ### ⚙️ Miscellaneous Tasks
20
+
21
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
22
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
23
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
24
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
25
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
26
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
27
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
28
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
29
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
30
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
31
+
6
32
  ## 0.16.2 - 2025-05-12
7
33
 
8
34
  ### 🧪 Testing
@@ -11,7 +11,7 @@ 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.settings import get_settings as _napari_get_settings # noqa: PLC0415
15
15
 
16
16
  if path is not None:
17
17
  path = os.path.join(path, "settings.yaml")
@@ -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:
@@ -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
@@ -174,7 +174,7 @@ class AddFiles(QWidget):
174
174
  res_list.append(os.path.join(base_path, file_path.strip()))
175
175
  if missed_files := [x for x in res_list if not os.path.exists(x)]:
176
176
  if len(missed_files) > 6:
177
- missed_files = missed_files[:6] + ["..."]
177
+ missed_files = [*missed_files[:6], "..."]
178
178
  missed_files_str = "<br>".join(missed_files)
179
179
  QMessageBox().warning(
180
180
  self,
@@ -11,9 +11,9 @@ import PartSegCore.plugins
11
11
 
12
12
 
13
13
  def register_napari_plugins(): # pragma: no cover
14
- import npe2
14
+ import npe2 # noqa: PLC0415
15
15
 
16
- import PartSeg
16
+ import PartSeg # noqa: PLC0415
17
17
 
18
18
  with contextlib.suppress(ValueError):
19
19
  npe2.PluginManager.instance().register(
@@ -35,7 +35,7 @@ class SaveITKSnap(SaveBase):
35
35
 
36
36
 
37
37
  def register():
38
- from PartSegCore.register import RegisterEnum
39
- from PartSegCore.register import register as register_fun
38
+ from PartSegCore.register import RegisterEnum # noqa: PLC0415
39
+ from PartSegCore.register import register as register_fun # noqa: PLC0415
40
40
 
41
41
  register_fun(SaveITKSnap, RegisterEnum.analysis_save)
@@ -2,10 +2,10 @@ from PartSeg.plugins.modeling_save.save_modeling_data import SaveModeling
2
2
 
3
3
 
4
4
  def register():
5
- from PartSeg import state_store
5
+ from PartSeg import state_store # noqa: PLC0415
6
6
 
7
7
  if state_store.custom_plugin_load:
8
- from PartSegCore.register import RegisterEnum
9
- from PartSegCore.register import register as register_fun
8
+ from PartSegCore.register import RegisterEnum # noqa: PLC0415
9
+ from PartSegCore.register import register as register_fun # noqa: PLC0415
10
10
 
11
11
  register_fun(SaveModeling, RegisterEnum.analysis_save)
@@ -3,6 +3,7 @@ from importlib.metadata import version
3
3
 
4
4
  from napari import Viewer
5
5
  from napari.layers import Labels
6
+ from napari.utils.colormaps import DirectLabelColormap
6
7
  from packaging.version import parse as parse_version
7
8
  from qtpy.QtWidgets import QHBoxLayout, QPushButton, QTabWidget
8
9
 
@@ -11,7 +12,6 @@ from PartSeg.common_gui.label_create import LabelChoose, LabelEditor, LabelShow
11
12
  from PartSeg.plugins.napari_widgets._settings import get_settings
12
13
 
13
14
  NAPARI_GE_5_0 = parse_version(version("napari")) >= parse_version("0.5.0a1")
14
- NAPARI_GE_4_19 = parse_version(version("napari")) >= parse_version("0.4.19a1")
15
15
 
16
16
 
17
17
  class NapariLabelShow(LabelShow):
@@ -42,12 +42,7 @@ class NapariLabelShow(LabelShow):
42
42
  max_val = layer.data.max()
43
43
  labels = {i + 1: [x / 255 for x in self.label[i % len(self.label)]] for i in range(max_val + 5)}
44
44
  labels[None] = [0, 0, 0, 0]
45
- if NAPARI_GE_4_19:
46
- from napari.utils.colormaps import DirectLabelColormap
47
-
48
- layer.colormap = DirectLabelColormap(color_dict=labels)
49
- else:
50
- layer.color = labels
45
+ layer.colormap = DirectLabelColormap(color_dict=labels)
51
46
 
52
47
 
53
48
  class NapariLabelChoose(LabelChoose):
@@ -2,10 +2,10 @@ from PartSeg.plugins.old_partseg.old_partseg import LoadPartSegOld
2
2
 
3
3
 
4
4
  def register():
5
- from PartSeg import state_store
5
+ from PartSeg import state_store # noqa: PLC0415
6
6
 
7
7
  if state_store.custom_plugin_load:
8
- from PartSegCore.register import RegisterEnum
9
- from PartSegCore.register import register as register_fun
8
+ from PartSegCore.register import RegisterEnum # noqa: PLC0415
9
+ from PartSegCore.register import register as register_fun # noqa: PLC0415
10
10
 
11
11
  register_fun(LoadPartSegOld, RegisterEnum.analysis_load)
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.16.2'
21
- __version_tuple__ = version_tuple = (0, 16, 2)
20
+ __version__ = version = '0.16.3'
21
+ __version_tuple__ = version_tuple = (0, 16, 3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PartSeg
3
- Version: 0.16.2
3
+ Version: 0.16.3
4
4
  Summary: PartSeg is python GUI and set of napari plugins for bio imaging analysis especially nucleus analysis,
5
5
  Author-email: Grzegorz Bokota <g.bokota@uw.edu.pl>
6
6
  License: BSD-3-Clause
@@ -151,10 +151,10 @@ This application is designed to help biologist with segmentation based on thresh
151
151
 
152
152
  - From binaries:
153
153
 
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)
154
+ - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-windows.zip) (build on Windows 10)
155
+ - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-linux.zip) (build on Ubuntu 20.04)
156
+ - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-macos.zip) (build on macOS 13)
157
+ - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.16.3/PartSeg-0.16.3-macos-arm64.zip) (build on macOS 14)
158
158
  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
159
 
160
160
  - With pip:
@@ -244,6 +244,32 @@ from 3D microscopy images for dummies. BMC Bioinformatics 22, 72 (2021).
244
244
 
245
245
  All notable changes to this project will be documented in this file.
246
246
 
247
+ ### 0.16.3 - 2025-07-10
248
+
249
+ #### 🐛 Bug Fixes
250
+
251
+ - Do not use default parameters in default leaf ([#1283](https://github.com/4DNucleome/PartSeg/pull/1283))
252
+
253
+ #### 🧪 Testing
254
+
255
+ - [Automatic] Constraints upgrades: `napari`, `numpy`, `pydantic`, `sentry-sdk`, `tifffile`, `vispy` ([#1273](https://github.com/4DNucleome/PartSeg/pull/1273))
256
+ - [Automatic] Constraints upgrades: `h5py`, `ipython`, `magicgui`, `numpy`, `pandas`, `pydantic`, `requests`, `sentry-sdk`, `superqt`, `tifffile`, `xlrd` ([#1276](https://github.com/4DNucleome/PartSeg/pull/1276))
257
+ - [Automatic] Constraints upgrades: `numpy`, `pygments`, `scipy`, `simpleitk`, `superqt`, `xlsxwriter` ([#1278](https://github.com/4DNucleome/PartSeg/pull/1278))
258
+ - [Automatic] Constraints upgrades: `ipython`, `napari`, `partsegcore-compiled-backend`, `psygnal`, `sentry-sdk` ([#1281](https://github.com/4DNucleome/PartSeg/pull/1281))
259
+
260
+ #### ⚙️ Miscellaneous Tasks
261
+
262
+ - Block `sentry==3.0.0a1` for pre-tests ([#1272](https://github.com/4DNucleome/PartSeg/pull/1272))
263
+ - Add fallback version for `setuptools_scm` ([#1271](https://github.com/4DNucleome/PartSeg/pull/1271))
264
+ - [pre-commit.ci] pre-commit autoupdate ([#1270](https://github.com/4DNucleome/PartSeg/pull/1270))
265
+ - Use ubuntu 22.04 when building pyinstaller bundle ([#1275](https://github.com/4DNucleome/PartSeg/pull/1275))
266
+ - [pre-commit.ci] pre-commit autoupdate ([#1274](https://github.com/4DNucleome/PartSeg/pull/1274))
267
+ - [pre-commit.ci] pre-commit autoupdate ([#1277](https://github.com/4DNucleome/PartSeg/pull/1277))
268
+ - Block sentry alpha 3.0.0a1 and 3.0.0a2 ([#1279](https://github.com/4DNucleome/PartSeg/pull/1279))
269
+ - Block `pytest-qt==4.5.0` (for `pyside2` compatibility) ([#1282](https://github.com/4DNucleome/PartSeg/pull/1282))
270
+ - [pre-commit.ci] pre-commit autoupdate ([#1280](https://github.com/4DNucleome/PartSeg/pull/1280))
271
+ - Migrate Windows images from 2019 to 2022 in Azure Pipelines and GitHub Actions ([#1284](https://github.com/4DNucleome/PartSeg/pull/1284))
272
+
247
273
  ### 0.16.2 - 2025-05-12
248
274
 
249
275
  #### 🧪 Testing
@@ -501,8 +501,8 @@ class ROIExtractionProfile(BaseModel, metaclass=ROIExtractionProfileMeta): # py
501
501
  return v
502
502
  if "algorithm" not in values:
503
503
  return v
504
- from PartSegCore.analysis import AnalysisAlgorithmSelection
505
- from PartSegCore.mask.algorithm_description import MaskAlgorithmSelection
504
+ from PartSegCore.analysis import AnalysisAlgorithmSelection # noqa: PLC0415
505
+ from PartSegCore.mask.algorithm_description import MaskAlgorithmSelection # noqa: PLC0415
506
506
 
507
507
  name = values["algorithm"]
508
508
  is_analysis = name in AnalysisAlgorithmSelection
@@ -599,7 +599,7 @@ def _calc_value_range(field_info: FieldInfo):
599
599
  if field_info.metadata is None:
600
600
  return (0, 1000)
601
601
 
602
- import annotated_types as at
602
+ import annotated_types as at # because of pydantic 1 # noqa: PLC0415
603
603
 
604
604
  value_range = (0, 1000)
605
605
  for el in field_info.metadata:
@@ -119,8 +119,8 @@ def get_data_loader(
119
119
 
120
120
  def prepare_error_data(exception: Exception) -> ErrorInfo:
121
121
  try:
122
- from sentry_sdk.serializer import serialize
123
- from sentry_sdk.utils import event_from_exception
122
+ from sentry_sdk.serializer import serialize # noqa: PLC0415
123
+ from sentry_sdk.utils import event_from_exception # noqa: PLC0415
124
124
 
125
125
  event = event_from_exception(exception)[0]
126
126
  event = serialize(event)
@@ -271,7 +271,7 @@ def spawn_worker(task_queue: Queue, order_queue: Queue, result_queue: Queue, cal
271
271
  try:
272
272
  register_if_need()
273
273
  with suppress(ImportError):
274
- from PartSeg.plugins import register_if_need as register
274
+ from PartSeg.plugins import register_if_need as register # noqa: PLC0415
275
275
 
276
276
  register()
277
277
  worker = BatchWorker(task_queue, order_queue, result_queue, calculation_dict)
@@ -150,7 +150,7 @@ def get_save_path(op: Save, calculation: "FileCalculation") -> str:
150
150
  :param calculation: information about calculation
151
151
  :return: save path
152
152
  """
153
- from PartSegCore.analysis.save_functions import save_dict
153
+ from PartSegCore.analysis.save_functions import save_dict # noqa: PLC0415
154
154
 
155
155
  extension = save_dict[op.algorithm].get_default_extension()
156
156
  rel_path = os.path.relpath(calculation.file_path, calculation.base_prefix)
@@ -71,7 +71,7 @@ def has_roi_components(component_and_mask_info: Iterable[tuple[PerComponent, Are
71
71
 
72
72
 
73
73
  def _migrate_leaf_dict(dkt):
74
- from PartSegCore.analysis.measurement_calculation import MEASUREMENT_DICT
74
+ from PartSegCore.analysis.measurement_calculation import MEASUREMENT_DICT # noqa: PLC0415
75
75
 
76
76
  new_dkt = dkt.copy()
77
77
  new_dkt["parameter_dict"] = new_dkt.pop("dict")
@@ -105,7 +105,7 @@ class Leaf(BaseModel):
105
105
  def _validate_parameters(cls, v, values): # pylint: disable=no-self-use
106
106
  if not isinstance(v, dict) or "name" not in values:
107
107
  return v
108
- from PartSegCore.analysis.measurement_calculation import MEASUREMENT_DICT
108
+ from PartSegCore.analysis.measurement_calculation import MEASUREMENT_DICT # noqa: PLC0415
109
109
 
110
110
  if values["name"] not in MEASUREMENT_DICT:
111
111
  return v
@@ -215,7 +215,7 @@ class Leaf(BaseModel):
215
215
 
216
216
  :param ndim: data dimensionality
217
217
  """
218
- from PartSegCore.analysis import MEASUREMENT_DICT
218
+ from PartSegCore.analysis import MEASUREMENT_DICT # noqa: PLC0415
219
219
 
220
220
  method = MEASUREMENT_DICT[self.name]
221
221
  if self.power != 1:
@@ -394,12 +394,6 @@ class MeasurementMethodBase(AlgorithmDescribeBase, ABC):
394
394
  @classmethod
395
395
  def get_starting_leaf(cls) -> Leaf:
396
396
  """This leaf is put on a default list"""
397
- if (
398
- hasattr(cls, "__argument_class__")
399
- and cls.__argument_class__ is not None
400
- and cls.__argument_class__ is not BaseModel
401
- ):
402
- return Leaf(name=cls._display_name(), parameters=cls.__argument_class__())
403
397
  return Leaf(name=cls._display_name())
404
398
 
405
399
  @classmethod
@@ -1685,7 +1685,7 @@ class ColocalizationMeasurement(MeasurementMethodBase):
1685
1685
  return 1
1686
1686
 
1687
1687
 
1688
- def pixel_volume(spacing, result_scalar):
1688
+ def pixel_volume(spacing: Sequence[float], result_scalar: float) -> float:
1689
1689
  return reduce((lambda x, y: x * y), [x * result_scalar for x in spacing])
1690
1690
 
1691
1691
 
@@ -79,7 +79,7 @@ def convex_fill(array: np.ndarray):
79
79
  upper_bound = np.max(points, axis=1)
80
80
  cut_area = tuple(slice(x, y + 1) for x, y in zip(lower_bound, upper_bound))
81
81
  if array.ndim == 3:
82
- cut_area = (slice(None),) + cut_area[1:]
82
+ cut_area = (slice(None), *cut_area[1:])
83
83
  component = component[cut_area]
84
84
  if array.ndim == 2:
85
85
  res = _convex_fill(component)
@@ -91,7 +91,7 @@ def convex_fill(array: np.ndarray):
91
91
  res = _convex_fill(component[j])
92
92
  if res is None:
93
93
  continue
94
- new_cut = (j,) + cut_area[1:]
94
+ new_cut = (j, *cut_area[1:])
95
95
  tmp = array[new_cut]
96
96
  tmp[res > 0] = i
97
97
  array[new_cut] = tmp