PartSeg 0.15.4b0__tar.gz → 0.15.4b2__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 (315) hide show
  1. {partseg-0.15.4b0 → partseg-0.15.4b2}/PKG-INFO +64 -10
  2. {partseg-0.15.4b0 → partseg-0.15.4b2}/changelog.md +50 -0
  3. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_launcher/check_version.py +1 -1
  4. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/advanced_window.py +7 -3
  5. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/measurement_widget.py +2 -2
  6. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/partseg_settings.py +5 -1
  7. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/main_window.py +4 -2
  8. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/changelog.py +50 -0
  9. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/advanced_tabs.py +19 -0
  10. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/channel_control.py +5 -3
  11. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/colormap_creator.py +6 -5
  12. partseg-0.15.4b2/package/PartSeg/common_gui/dict_viewer.py +38 -0
  13. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/image_adjustment.py +1 -1
  14. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/napari_image_view.py +14 -4
  15. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/launcher_main.py +12 -3
  16. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +5 -2
  17. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/utils.py +3 -1
  18. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/version.py +1 -1
  19. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg.egg-info/PKG-INFO +64 -10
  20. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg.egg-info/SOURCES.txt +2 -0
  21. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg.egg-info/requires.txt +17 -9
  22. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/measurement_base.py +7 -1
  23. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/measurement_calculation.py +3 -1
  24. partseg-0.15.4b2/package/PartSegCore/image_transforming/__init__.py +18 -0
  25. partseg-0.15.4b2/package/PartSegCore/image_transforming/combine_channels.py +62 -0
  26. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/image_transforming/image_projection.py +2 -2
  27. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/image_transforming/interpolate_image.py +2 -1
  28. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/image_transforming/swap_time_stack.py +1 -1
  29. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/image_transforming/transform_base.py +1 -1
  30. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/segmentation_algorithm.py +12 -3
  31. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegImage/image.py +31 -13
  32. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegImage/image_reader.py +22 -3
  33. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/conftest.py +33 -7
  34. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/conftest.py +4 -4
  35. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +2 -2
  36. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_analysis.py +20 -3
  37. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_base_widgets.py +1 -0
  38. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_napari_widgets.py +13 -2
  39. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_roi_analysis_batch.py +1 -1
  40. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_viewer.py +3 -3
  41. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_image_adjustment.py +39 -1
  42. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_napari_plugins.py +4 -4
  43. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegImage/test_image.py +9 -1
  44. partseg-0.15.4b2/package/tests/test_data/napari_measurements_profile.json +372 -0
  45. {partseg-0.15.4b0 → partseg-0.15.4b2}/pyproject.toml +12 -6
  46. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.10.txt +33 -31
  47. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.10_pydantic_1.txt +33 -31
  48. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.11.txt +31 -30
  49. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.11_docs.txt +24 -22
  50. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.11_pydantic_1.txt +31 -30
  51. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.12.txt +25 -25
  52. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.12_pydantic_1.txt +25 -25
  53. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.8.txt +14 -15
  54. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.8_pydantic_1.txt +14 -15
  55. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.9.txt +28 -26
  56. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/constraints_py3.9_pydantic_1.txt +28 -26
  57. partseg-0.15.4b0/package/PartSegCore/image_transforming/__init__.py +0 -9
  58. partseg-0.15.4b0/package/tests/test_data/napari_measurements_profile.json +0 -170
  59. {partseg-0.15.4b0 → partseg-0.15.4b2}/.napari/DESCRIPTION.md +0 -0
  60. {partseg-0.15.4b0 → partseg-0.15.4b2}/.napari/config.yml +0 -0
  61. {partseg-0.15.4b0 → partseg-0.15.4b2}/CITATION.cff +0 -0
  62. {partseg-0.15.4b0 → partseg-0.15.4b2}/License.txt +0 -0
  63. {partseg-0.15.4b0 → partseg-0.15.4b2}/MANIFEST.in +0 -0
  64. {partseg-0.15.4b0 → partseg-0.15.4b2}/Readme.md +0 -0
  65. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/__init__.py +0 -0
  66. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/__main__.py +0 -0
  67. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_launcher/__init__.py +0 -0
  68. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_launcher/check_survey.py +0 -0
  69. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_launcher/main_window.py +0 -0
  70. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/__init__.py +0 -0
  71. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
  72. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
  73. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/export_batch.py +0 -0
  74. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/image_view.py +0 -0
  75. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/main_window.py +0 -0
  76. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
  77. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
  78. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/__init__.py +0 -0
  79. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
  80. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/image_view.py +0 -0
  81. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
  82. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
  83. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/_roi_mask/stack_settings.py +0 -0
  84. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/__init__.py +0 -0
  85. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/abstract_class.py +0 -0
  86. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/base_argparser.py +0 -0
  87. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/base_settings.py +0 -0
  88. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/except_hook.py +0 -0
  89. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/load_backup.py +0 -0
  90. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
  91. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/progress_thread.py +0 -0
  92. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
  93. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_backend/segmentation_thread.py +0 -0
  94. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/__init__.py +0 -0
  95. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/about_dialog.py +0 -0
  96. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/algorithms_description.py +0 -0
  97. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
  98. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/custom_buttons.py +0 -0
  99. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
  100. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/custom_save_dialog.py +0 -0
  101. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
  102. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/error_report.py +0 -0
  103. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/exception_hooks.py +0 -0
  104. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/flow_layout.py +0 -0
  105. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/icon_selector.py +0 -0
  106. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/label_create.py +0 -0
  107. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
  108. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/main_window.py +0 -0
  109. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/mask_widget.py +0 -0
  110. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
  111. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
  112. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
  113. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/qt_console.py +0 -0
  114. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/qt_modal.py +0 -0
  115. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/qt_util.py +0 -0
  116. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
  117. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
  118. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/select_multiple_files.py +0 -0
  119. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
  120. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/stack_image_view.py +0 -0
  121. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
  122. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
  123. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
  124. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/napari.yaml +0 -0
  125. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/__init__.py +0 -0
  126. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/itk_snap_save/__init__.py +0 -0
  127. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/modeling_save/__init__.py +0 -0
  128. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
  129. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -0
  130. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
  131. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
  132. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
  133. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
  134. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/lables_control.py +0 -0
  135. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
  136. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
  137. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -0
  138. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +0 -0
  139. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/old_partseg/__init__.py +0 -0
  140. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
  141. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg/state_store.py +0 -0
  142. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg.egg-info/dependency_links.txt +0 -0
  143. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg.egg-info/entry_points.txt +0 -0
  144. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSeg.egg-info/top_level.txt +0 -0
  145. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/__init__.py +0 -0
  146. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/_old_json_hooks.py +0 -0
  147. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/algorithm_describe_base.py +0 -0
  148. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/__init__.py +0 -0
  149. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/algorithm_description.py +0 -0
  150. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/analysis_utils.py +0 -0
  151. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
  152. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/batch_processing/batch_backend.py +0 -0
  153. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +0 -0
  154. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
  155. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/calculation_plan.py +0 -0
  156. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/io_utils.py +0 -0
  157. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/load_functions.py +0 -0
  158. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/analysis/save_functions.py +0 -0
  159. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/autofit.py +0 -0
  160. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/channel_class.py +0 -0
  161. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/class_generator.py +0 -0
  162. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/color_image/__init__.py +0 -0
  163. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/color_image/base_colors.py +0 -0
  164. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/color_image/color_data.py +0 -0
  165. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/convex_fill.py +0 -0
  166. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/custom_name_generate.py +0 -0
  167. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/image_operations.py +0 -0
  168. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/io_utils.py +0 -0
  169. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/json_hooks.py +0 -0
  170. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/mask/__init__.py +0 -0
  171. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/mask/algorithm_description.py +0 -0
  172. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/mask/history_utils.py +0 -0
  173. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/mask/io_functions.py +0 -0
  174. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/mask_create.py +0 -0
  175. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/mask_partition_utils.py +0 -0
  176. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/__init__.py +0 -0
  177. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/load_image.py +0 -0
  178. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/load_mask_project.py +0 -0
  179. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/load_masked_image.py +0 -0
  180. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/load_roi_project.py +0 -0
  181. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/loader.py +0 -0
  182. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/save_mask_roi.py +0 -0
  183. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/napari_plugins/save_tiff_layer.py +0 -0
  184. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/plugins/__init__.py +0 -0
  185. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/project_info.py +0 -0
  186. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/register.py +0 -0
  187. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/roi_info.py +0 -0
  188. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/__init__.py +0 -0
  189. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
  190. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
  191. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
  192. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
  193. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +0 -0
  194. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/threshold.py +0 -0
  195. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/utils.py +0 -0
  196. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/segmentation/watershed.py +0 -0
  197. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/sphinx/__init__.py +0 -0
  198. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
  199. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/universal_const.py +0 -0
  200. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegCore/utils.py +0 -0
  201. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegImage/__init__.py +0 -0
  202. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegImage/channel_class.py +0 -0
  203. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegImage/image_writer.py +0 -0
  204. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/PartSegImage/tifffile_fixes.py +0 -0
  205. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/__init__.py +0 -0
  206. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
  207. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_batch.py +0 -0
  208. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
  209. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +0 -0
  210. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +0 -0
  211. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +0 -0
  212. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
  213. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
  214. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_mask/test_batch.py +0 -0
  215. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/roi_mask/test_main_window.py +0 -0
  216. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_base.py +0 -0
  217. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_channel_control.py +0 -0
  218. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_check_release.py +0 -0
  219. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_check_survey.py +0 -0
  220. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
  221. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_common_backend.py +0 -0
  222. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_common_gui.py +0 -0
  223. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_io.py +0 -0
  224. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_label_choose.py +0 -0
  225. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_launcher.py +0 -0
  226. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_main_windows.py +0 -0
  227. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_napari_image_view.py +0 -0
  228. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_sentry.py +0 -0
  229. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_settings.py +0 -0
  230. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSeg/test_window_import.py +0 -0
  231. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/__init__.py +0 -0
  232. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
  233. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
  234. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
  235. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
  236. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +0 -0
  237. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_analysis_batch.py +0 -0
  238. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_base.py +0 -0
  239. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_class_generator.py +0 -0
  240. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_class_register.py +0 -0
  241. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_io.py +0 -0
  242. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_json_hooks.py +0 -0
  243. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_mask_create.py +0 -0
  244. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
  245. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_measurements.py +0 -0
  246. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_min_req.py +0 -0
  247. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_mso.py +0 -0
  248. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
  249. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_segmentation.py +0 -0
  250. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
  251. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_smooth.py +0 -0
  252. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegCore/test_utils.py +0 -0
  253. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegImage/__init__.py +0 -0
  254. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
  255. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegImage/test_image_reader.py +0 -0
  256. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_PartSegImage/test_image_writer.py +0 -0
  257. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
  258. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/measurements_profile.json +0 -0
  259. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
  260. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
  261. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/notebook/segment_data.json +0 -0
  262. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
  263. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
  264. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
  265. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
  266. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
  267. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
  268. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
  269. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
  270. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
  271. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
  272. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
  273. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
  274. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
  275. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
  276. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
  277. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
  278. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
  279. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
  280. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
  281. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
  282. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
  283. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
  284. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
  285. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
  286. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
  287. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
  288. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
  289. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
  290. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
  291. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
  292. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
  293. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
  294. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
  295. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
  296. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
  297. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
  298. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/ome.xsd.xml +0 -0
  299. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
  300. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/problematic_json_batch.json +0 -0
  301. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/problematic_profile_dict.json +0 -0
  302. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/range_profile.json +0 -0
  303. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/sample_batch_output.xlsx +0 -0
  304. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
  305. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
  306. {partseg-0.15.4b0 → partseg-0.15.4b2}/package/tests/test_data/workflow.json +0 -0
  307. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/dependabot_runtime.txt +0 -0
  308. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/pre_test_problematic_version.txt +0 -0
  309. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/pydantic_1.txt +0 -0
  310. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/requirements_ci.txt +0 -0
  311. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/requirements_dev.txt +0 -0
  312. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/requirements_test.txt +0 -0
  313. {partseg-0.15.4b0 → partseg-0.15.4b2}/requirements/version_denylist.txt +0 -0
  314. {partseg-0.15.4b0 → partseg-0.15.4b2}/setup.cfg +0 -0
  315. {partseg-0.15.4b0 → partseg-0.15.4b2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PartSeg
3
- Version: 0.15.4b0
3
+ Version: 0.15.4b2
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
@@ -50,7 +50,8 @@ Requires-Dist: magicgui!=0.5.0,>=0.4.0
50
50
  Requires-Dist: mahotas>=1.4.10
51
51
  Requires-Dist: napari>=0.4.14
52
52
  Requires-Dist: nme>=0.1.7
53
- Requires-Dist: numpy>=1.18.5
53
+ Requires-Dist: numpy>=1.18.5; python_version >= "3.10"
54
+ Requires-Dist: numpy<2,>=1.18.5; python_version < "3.10"
54
55
  Requires-Dist: oiffile>=2020.1.18
55
56
  Requires-Dist: openpyxl>=2.5.7
56
57
  Requires-Dist: packaging>=20.0
@@ -71,7 +72,6 @@ Requires-Dist: vispy>=0.9.4
71
72
  Requires-Dist: xlrd>=1.1.0
72
73
  Requires-Dist: xlsxwriter>=2.0.0
73
74
  Provides-Extra: accelerate
74
- Requires-Dist: PyOpenGL-accelerate>=3.1.5; platform_machine != "arm64" and extra == "accelerate"
75
75
  Provides-Extra: all
76
76
  Requires-Dist: PartSeg[accelerate,pyqt5]; extra == "all"
77
77
  Provides-Extra: docs
@@ -82,21 +82,25 @@ Requires-Dist: sphinx-qt-documentation; extra == "docs"
82
82
  Provides-Extra: pyinstaller
83
83
  Requires-Dist: PartSeg[pyinstaller_base,pyqt5]; extra == "pyinstaller"
84
84
  Provides-Extra: pyinstaller-base
85
- Requires-Dist: PyOpenGL-accelerate>=3.1.5; platform_machine != "arm64" and extra == "pyinstaller-base"
85
+ Requires-Dist: PartSeg[accelerate]; extra == "pyinstaller-base"
86
86
  Requires-Dist: PyInstaller; extra == "pyinstaller-base"
87
87
  Requires-Dist: pydantic; extra == "pyinstaller-base"
88
88
  Provides-Extra: pyqt
89
- Requires-Dist: PyQt5!=5.15.0,>=5.12.3; extra == "pyqt"
89
+ Requires-Dist: PartSeg[pyqt5]; extra == "pyqt"
90
90
  Provides-Extra: pyqt5
91
91
  Requires-Dist: PyQt5!=5.15.0,>=5.12.3; extra == "pyqt5"
92
+ Requires-Dist: napari[pyqt5]; extra == "pyqt5"
92
93
  Provides-Extra: pyqt6
93
94
  Requires-Dist: PyQt6; extra == "pyqt6"
95
+ Requires-Dist: napari[pyqt6]>=0.5.0; python_version >= "3.9" and extra == "pyqt6"
94
96
  Provides-Extra: pyside
95
- Requires-Dist: PySide2!=5.15.0,>=5.12.3; extra == "pyside"
97
+ Requires-Dist: PartSeg[pyside2]; extra == "pyside"
96
98
  Provides-Extra: pyside2
97
99
  Requires-Dist: PySide2!=5.15.0,>=5.12.3; extra == "pyside2"
100
+ Requires-Dist: napari[pyside]; extra == "pyside2"
98
101
  Provides-Extra: pyside6
99
102
  Requires-Dist: PySide6; extra == "pyside6"
103
+ Requires-Dist: napari[pyside6_experimental]>=0.5.0; python_version >= "3.9" and extra == "pyside6"
100
104
  Provides-Extra: test
101
105
  Requires-Dist: coverage; extra == "test"
102
106
  Requires-Dist: lxml[html_clean]; extra == "test"
@@ -145,10 +149,10 @@ This application is designed to help biologist with segmentation based on thresh
145
149
 
146
150
  - From binaries:
147
151
 
148
- - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b0/PartSeg-0.15.4b0-windows.zip) (build on Windows 10)
149
- - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b0/PartSeg-0.15.4b0-linux.zip) (build on Ubuntu 20.04)
150
- - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b0/PartSeg-0.15.4b0-macos.zip) (build on macOS 13)
151
- - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b0/PartSeg-0.15.4b0-macos-arm64.zip) (build on macOS 14)
152
+ - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b2/PartSeg-0.15.4b2-windows.zip) (build on Windows 10)
153
+ - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b2/PartSeg-0.15.4b2-linux.zip) (build on Ubuntu 20.04)
154
+ - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b2/PartSeg-0.15.4b2-macos.zip) (build on macOS 13)
155
+ - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b2/PartSeg-0.15.4b2-macos-arm64.zip) (build on macOS 14)
152
156
  There are reported problems with permissions systems on macOS. If you have a problem with starting the application, please try to run it from the terminal.
153
157
 
154
158
  - With pip:
@@ -238,6 +242,56 @@ from 3D microscopy images for dummies. BMC Bioinformatics 22, 72 (2021).
238
242
 
239
243
  All notable changes to this project will be documented in this file.
240
244
 
245
+ ### 0.15.4b - 2024-07-23
246
+
247
+ #### 🚀 Features
248
+
249
+ - Add preview of image metadata ([#1154](https://github.com/4DNucleome/PartSeg/pull/1154))
250
+ - Add option to combine channels using sum and max ([#1159](https://github.com/4DNucleome/PartSeg/pull/1159))
251
+
252
+ #### 🐛 Bug Fixes
253
+
254
+ - Fix selection of custom label colors for napari 0.5.0 ([#1138](https://github.com/4DNucleome/PartSeg/pull/1138))
255
+ - Add pint call to enforce initialization of unit registry ([#1146](https://github.com/4DNucleome/PartSeg/pull/1146))
256
+ - Workaround for lack of zsd support in czifile ([#1142](https://github.com/4DNucleome/PartSeg/pull/1142))
257
+ - Fix preparing data for `mahotas.haralick` to avoid overflow problem ([#1150](https://github.com/4DNucleome/PartSeg/pull/1150))
258
+ - Fix `use_convex` type from `int` to `bool` for segmentation algorithms ([#1152](https://github.com/4DNucleome/PartSeg/pull/1152))
259
+ - Prevent propagation of decreasing contrast limits set by user ([#1166](https://github.com/4DNucleome/PartSeg/pull/1166))
260
+ - Prevent error on searching component if there is no component ([#1167](https://github.com/4DNucleome/PartSeg/pull/1167))
261
+ - Fix checking if channel requested by MeasurementProfile exists ([#1165](https://github.com/4DNucleome/PartSeg/pull/1165))
262
+ - Fix trying to access to just deleted measurement profile from edit window. ([#1168](https://github.com/4DNucleome/PartSeg/pull/1168))
263
+
264
+ #### 📚 Documentation
265
+
266
+ - Change homepage URL ([#1139](https://github.com/4DNucleome/PartSeg/pull/1139))
267
+ - Add link for download macOS arm bundle ([#1140](https://github.com/4DNucleome/PartSeg/pull/1140))
268
+ - Add changelog for 0.15.4 release
269
+
270
+ #### 🧪 Testing
271
+
272
+ - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `sympy` ([#1128](https://github.com/4DNucleome/PartSeg/pull/1128))
273
+ - \[Automatic\] Constraints upgrades: `mahotas`, `numpy`, `sentry-sdk`, `sympy` ([#1145](https://github.com/4DNucleome/PartSeg/pull/1145))
274
+ - \[Automatic\] Constraints upgrades: `numpy`, `tifffile` ([#1163](https://github.com/4DNucleome/PartSeg/pull/1163))
275
+
276
+ #### ⚙️ Miscellaneous Tasks
277
+
278
+ - Speedup tests by use `tox-uv` ([#1141](https://github.com/4DNucleome/PartSeg/pull/1141))
279
+ - Get additional dict from PR branch for checking PR title ([#1144](https://github.com/4DNucleome/PartSeg/pull/1144))
280
+ - Relax numpy constraint ([#1143](https://github.com/4DNucleome/PartSeg/pull/1143))
281
+ - Allow to skip spellchecking PR title ([#1147](https://github.com/4DNucleome/PartSeg/pull/1147))
282
+ - \[pre-commit.ci\] pre-commit autoupdate ([#1149](https://github.com/4DNucleome/PartSeg/pull/1149))
283
+ - Create only archive with version in name on azures pipeline ([#1151](https://github.com/4DNucleome/PartSeg/pull/1151))
284
+ - Fix tests for napari from repository ([#1148](https://github.com/4DNucleome/PartSeg/pull/1148))
285
+ - Use python 3.11 to determine updated packages in PR description ([#1160](https://github.com/4DNucleome/PartSeg/pull/1160))
286
+ - \[pre-commit.ci\] pre-commit autoupdate ([#1164](https://github.com/4DNucleome/PartSeg/pull/1164))
287
+
288
+ #### Build
289
+
290
+ - Remove PyOpenGL-accelerate from dependencies because of numpy incompatibility ([#1155](https://github.com/4DNucleome/PartSeg/pull/1155))
291
+ - Update install constraints on numpy and qt packages ([#1157](https://github.com/4DNucleome/PartSeg/pull/1157))
292
+ - Enforce napari 0.5.0 for Qt6 bindings ([#1161](https://github.com/4DNucleome/PartSeg/pull/1161))
293
+ - Require napari>=0.5.0 only for python 3.9+ ([#1162](https://github.com/4DNucleome/PartSeg/pull/1162))
294
+
241
295
  ### 0.15.3 - 2024-07-08
242
296
 
243
297
  #### 🚀 Features
@@ -2,6 +2,56 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.15.4b - 2024-07-23
6
+
7
+ ### 🚀 Features
8
+
9
+ - Add preview of image metadata ([#1154](https://github.com/4DNucleome/PartSeg/pull/1154))
10
+ - Add option to combine channels using sum and max ([#1159](https://github.com/4DNucleome/PartSeg/pull/1159))
11
+
12
+ ### 🐛 Bug Fixes
13
+
14
+ - Fix selection of custom label colors for napari 0.5.0 ([#1138](https://github.com/4DNucleome/PartSeg/pull/1138))
15
+ - Add pint call to enforce initialization of unit registry ([#1146](https://github.com/4DNucleome/PartSeg/pull/1146))
16
+ - Workaround for lack of zsd support in czifile ([#1142](https://github.com/4DNucleome/PartSeg/pull/1142))
17
+ - Fix preparing data for `mahotas.haralick` to avoid overflow problem ([#1150](https://github.com/4DNucleome/PartSeg/pull/1150))
18
+ - Fix `use_convex` type from `int` to `bool` for segmentation algorithms ([#1152](https://github.com/4DNucleome/PartSeg/pull/1152))
19
+ - Prevent propagation of decreasing contrast limits set by user ([#1166](https://github.com/4DNucleome/PartSeg/pull/1166))
20
+ - Prevent error on searching component if there is no component ([#1167](https://github.com/4DNucleome/PartSeg/pull/1167))
21
+ - Fix checking if channel requested by MeasurementProfile exists ([#1165](https://github.com/4DNucleome/PartSeg/pull/1165))
22
+ - Fix trying to access to just deleted measurement profile from edit window. ([#1168](https://github.com/4DNucleome/PartSeg/pull/1168))
23
+
24
+ ### 📚 Documentation
25
+
26
+ - Change homepage URL ([#1139](https://github.com/4DNucleome/PartSeg/pull/1139))
27
+ - Add link for download macOS arm bundle ([#1140](https://github.com/4DNucleome/PartSeg/pull/1140))
28
+ - Add changelog for 0.15.4 release
29
+
30
+ ### 🧪 Testing
31
+
32
+ - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `sympy` ([#1128](https://github.com/4DNucleome/PartSeg/pull/1128))
33
+ - \[Automatic\] Constraints upgrades: `mahotas`, `numpy`, `sentry-sdk`, `sympy` ([#1145](https://github.com/4DNucleome/PartSeg/pull/1145))
34
+ - \[Automatic\] Constraints upgrades: `numpy`, `tifffile` ([#1163](https://github.com/4DNucleome/PartSeg/pull/1163))
35
+
36
+ ### ⚙️ Miscellaneous Tasks
37
+
38
+ - Speedup tests by use `tox-uv` ([#1141](https://github.com/4DNucleome/PartSeg/pull/1141))
39
+ - Get additional dict from PR branch for checking PR title ([#1144](https://github.com/4DNucleome/PartSeg/pull/1144))
40
+ - Relax numpy constraint ([#1143](https://github.com/4DNucleome/PartSeg/pull/1143))
41
+ - Allow to skip spellchecking PR title ([#1147](https://github.com/4DNucleome/PartSeg/pull/1147))
42
+ - \[pre-commit.ci\] pre-commit autoupdate ([#1149](https://github.com/4DNucleome/PartSeg/pull/1149))
43
+ - Create only archive with version in name on azures pipeline ([#1151](https://github.com/4DNucleome/PartSeg/pull/1151))
44
+ - Fix tests for napari from repository ([#1148](https://github.com/4DNucleome/PartSeg/pull/1148))
45
+ - Use python 3.11 to determine updated packages in PR description ([#1160](https://github.com/4DNucleome/PartSeg/pull/1160))
46
+ - \[pre-commit.ci\] pre-commit autoupdate ([#1164](https://github.com/4DNucleome/PartSeg/pull/1164))
47
+
48
+ ### Build
49
+
50
+ - Remove PyOpenGL-accelerate from dependencies because of numpy incompatibility ([#1155](https://github.com/4DNucleome/PartSeg/pull/1155))
51
+ - Update install constraints on numpy and qt packages ([#1157](https://github.com/4DNucleome/PartSeg/pull/1157))
52
+ - Enforce napari 0.5.0 for Qt6 bindings ([#1161](https://github.com/4DNucleome/PartSeg/pull/1161))
53
+ - Require napari>=0.5.0 only for python 3.9+ ([#1162](https://github.com/4DNucleome/PartSeg/pull/1162))
54
+
5
55
  ## 0.15.3 - 2024-07-08
6
56
 
7
57
  ### 🚀 Features
@@ -50,7 +50,7 @@ class CheckVersionThread(QThread):
50
50
  return
51
51
  os.remove(os.path.join(state_store.save_folder, IGNORE_FILE))
52
52
 
53
- with urllib.request.urlopen(f"https://pypi.org/pypi/{self.package_name}/json") as r: # nosec # noqa: S310
53
+ with urllib.request.urlopen(f"https://pypi.org/pypi/{self.package_name}/json") as r: # nosec
54
54
  data = json.load(r)
55
55
  self.release = data["info"]["version"]
56
56
  self.url = data["info"]["home_page"]
@@ -34,7 +34,7 @@ from PartSeg._roi_analysis.measurement_widget import MeasurementWidget
34
34
  from PartSeg._roi_analysis.partseg_settings import PartSettings
35
35
  from PartSeg._roi_analysis.profile_export import ExportDialog, ImportDialog, ProfileDictViewer, StringViewer
36
36
  from PartSeg.common_backend.base_settings import IO_SAVE_DIRECTORY
37
- from PartSeg.common_gui.advanced_tabs import AdvancedWindow
37
+ from PartSeg.common_gui.advanced_tabs import AdvancedWindow, ImageMetadata
38
38
  from PartSeg.common_gui.custom_load_dialog import PLoadDialog
39
39
  from PartSeg.common_gui.custom_save_dialog import FormDialog, PSaveDialog
40
40
  from PartSeg.common_gui.error_report import DataImportErrorDialog
@@ -533,7 +533,9 @@ class MeasurementSettings(QWidget):
533
533
  self.profile_description.setText("")
534
534
  return
535
535
  item = self.profile_list.currentItem()
536
- if item is None:
536
+ if item is None or item.text() not in self.settings.measurement_profiles:
537
+ # item.text() is not in self.settings.measurement_profiles just after delete
538
+ # when list content is not updated
537
539
  self.profile_description.setText("")
538
540
  return
539
541
  profile = self.settings.measurement_profiles[item.text()]
@@ -805,7 +807,7 @@ class MeasurementSettings(QWidget):
805
807
  if err:
806
808
  QMessageBox.warning(self, "Import error", "error during importing, part of data were filtered.")
807
809
  measurement_dict = self.settings.measurement_profiles
808
- imp = ImportDialog(stat, measurement_dict, StringViewer, MeasurementProfile)
810
+ imp = ImportDialog(stat, measurement_dict, StringViewer, MeasurementProfile, parent=self)
809
811
  if not imp.exec_():
810
812
  return
811
813
  for original_name, final_name in imp.get_import_list():
@@ -824,9 +826,11 @@ class SegAdvancedWindow(AdvancedWindow):
824
826
 
825
827
  self.setWindowTitle("Settings and Measurement")
826
828
  self.advanced_settings = Properties(settings)
829
+ self.image_metadata = ImageMetadata(settings)
827
830
  self.measurement = MeasurementWidget(settings)
828
831
  self.measurement_settings = MeasurementSettings(settings)
829
832
  self.insertTab(0, self.advanced_settings, "Properties")
833
+ self.insertTab(1, self.image_metadata, "Image metadata")
830
834
  self.addTab(self.measurement_settings, "Measurements settings")
831
835
  self.addTab(self.measurement, "Measurements")
832
836
  self.setCurrentWidget(self.advanced_settings)
@@ -367,11 +367,11 @@ class MeasurementWidget(MeasurementWidgetBase):
367
367
  units = self.units_choose.currentEnum()
368
368
 
369
369
  for num in compute_class.get_channels_num():
370
- if num >= self.settings.image.channels:
370
+ if not self.settings.image.has_channel(num):
371
371
  QMessageBox.warning(
372
372
  self,
373
373
  "Measurement error",
374
- f"Cannot calculate this measurement because image do not have channel {num+1}",
374
+ f"Cannot calculate this measurement because image do not have channel {num}",
375
375
  )
376
376
  return
377
377
 
@@ -106,7 +106,11 @@ class PartSettings(BaseSettings):
106
106
  return
107
107
  if not isinstance(data, ProjectTuple):
108
108
  return
109
- if self.image.file_path == data.image.file_path and self.image.shape == data.image.shape:
109
+ if (
110
+ self.image.file_path == data.image.file_path
111
+ and self.image.shape == data.image.shape
112
+ and self.image.channels == data.image.channels
113
+ ):
110
114
  if data.roi_info.roi is not None:
111
115
  try:
112
116
  self.image.fit_array_to_image(data.roi_info.roi)
@@ -34,7 +34,7 @@ from PartSeg._roi_mask.segmentation_info_dialog import SegmentationInfoDialog
34
34
  from PartSeg._roi_mask.simple_measurements import SimpleMeasurements
35
35
  from PartSeg._roi_mask.stack_settings import StackSettings, get_mask
36
36
  from PartSeg.common_backend.base_settings import IO_SAVE_DIRECTORY, ROI_NOT_FIT
37
- from PartSeg.common_gui.advanced_tabs import AdvancedWindow
37
+ from PartSeg.common_gui.advanced_tabs import AdvancedWindow, ImageMetadata
38
38
  from PartSeg.common_gui.algorithms_description import AlgorithmChoose, InteractiveAlgorithmSettingsWidget
39
39
  from PartSeg.common_gui.channel_control import ChannelProperty
40
40
  from PartSeg.common_gui.custom_load_dialog import PLoadDialog
@@ -869,14 +869,16 @@ class Options(QTabWidget):
869
869
  self._settings = settings
870
870
  self.algorithm_options = AlgorithmOptions(settings, image_view)
871
871
  self.image_properties = ImageInformation(settings)
872
+ self.image_metadata = ImageMetadata(settings)
872
873
  self.image_properties.add_files.file_list_changed.connect(self.algorithm_options.file_list_change)
873
874
  self.algorithm_options.batch_process.multiple_result.connect(
874
875
  partial(self.image_properties.multiple_files.setChecked, True)
875
876
  )
876
877
  self.addTab(self.image_properties, "Image")
878
+ self.addTab(self.image_metadata, "Image metadata")
877
879
  self.addTab(self.algorithm_options, "Segmentation")
878
880
  self.setMinimumWidth(370)
879
- self.setCurrentIndex(1)
881
+ self.setCurrentIndex(2)
880
882
 
881
883
  def get_chosen_components(self):
882
884
  return self.algorithm_options.get_chosen_components()
@@ -3,6 +3,56 @@ changelog = """
3
3
 
4
4
  All notable changes to this project will be documented in this file.
5
5
 
6
+ ## 0.15.4b - 2024-07-23
7
+
8
+ ### 🚀 Features
9
+
10
+ - Add preview of image metadata ([#1154](https://github.com/4DNucleome/PartSeg/pull/1154))
11
+ - Add option to combine channels using sum and max ([#1159](https://github.com/4DNucleome/PartSeg/pull/1159))
12
+
13
+ ### 🐛 Bug Fixes
14
+
15
+ - Fix selection of custom label colors for napari 0.5.0 ([#1138](https://github.com/4DNucleome/PartSeg/pull/1138))
16
+ - Add pint call to enforce initialization of unit registry ([#1146](https://github.com/4DNucleome/PartSeg/pull/1146))
17
+ - Workaround for lack of zsd support in czifile ([#1142](https://github.com/4DNucleome/PartSeg/pull/1142))
18
+ - Fix preparing data for `mahotas.haralick` to avoid overflow problem ([#1150](https://github.com/4DNucleome/PartSeg/pull/1150))
19
+ - Fix `use_convex` type from `int` to `bool` for segmentation algorithms ([#1152](https://github.com/4DNucleome/PartSeg/pull/1152))
20
+ - Prevent propagation of decreasing contrast limits set by user ([#1166](https://github.com/4DNucleome/PartSeg/pull/1166))
21
+ - Prevent error on searching component if there is no component ([#1167](https://github.com/4DNucleome/PartSeg/pull/1167))
22
+ - Fix checking if channel requested by MeasurementProfile exists ([#1165](https://github.com/4DNucleome/PartSeg/pull/1165))
23
+ - Fix trying to access to just deleted measurement profile from edit window. ([#1168](https://github.com/4DNucleome/PartSeg/pull/1168))
24
+
25
+ ### 📚 Documentation
26
+
27
+ - Change homepage URL ([#1139](https://github.com/4DNucleome/PartSeg/pull/1139))
28
+ - Add link for download macOS arm bundle ([#1140](https://github.com/4DNucleome/PartSeg/pull/1140))
29
+ - Add changelog for 0.15.4 release
30
+
31
+ ### 🧪 Testing
32
+
33
+ - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `sympy` ([#1128](https://github.com/4DNucleome/PartSeg/pull/1128))
34
+ - \[Automatic\] Constraints upgrades: `mahotas`, `numpy`, `sentry-sdk`, `sympy` ([#1145](https://github.com/4DNucleome/PartSeg/pull/1145))
35
+ - \[Automatic\] Constraints upgrades: `numpy`, `tifffile` ([#1163](https://github.com/4DNucleome/PartSeg/pull/1163))
36
+
37
+ ### ⚙️ Miscellaneous Tasks
38
+
39
+ - Speedup tests by use `tox-uv` ([#1141](https://github.com/4DNucleome/PartSeg/pull/1141))
40
+ - Get additional dict from PR branch for checking PR title ([#1144](https://github.com/4DNucleome/PartSeg/pull/1144))
41
+ - Relax numpy constraint ([#1143](https://github.com/4DNucleome/PartSeg/pull/1143))
42
+ - Allow to skip spellchecking PR title ([#1147](https://github.com/4DNucleome/PartSeg/pull/1147))
43
+ - \[pre-commit.ci\] pre-commit autoupdate ([#1149](https://github.com/4DNucleome/PartSeg/pull/1149))
44
+ - Create only archive with version in name on azures pipeline ([#1151](https://github.com/4DNucleome/PartSeg/pull/1151))
45
+ - Fix tests for napari from repository ([#1148](https://github.com/4DNucleome/PartSeg/pull/1148))
46
+ - Use python 3.11 to determine updated packages in PR description ([#1160](https://github.com/4DNucleome/PartSeg/pull/1160))
47
+ - \[pre-commit.ci\] pre-commit autoupdate ([#1164](https://github.com/4DNucleome/PartSeg/pull/1164))
48
+
49
+ ### Build
50
+
51
+ - Remove PyOpenGL-accelerate from dependencies because of numpy incompatibility ([#1155](https://github.com/4DNucleome/PartSeg/pull/1155))
52
+ - Update install constraints on numpy and qt packages ([#1157](https://github.com/4DNucleome/PartSeg/pull/1157))
53
+ - Enforce napari 0.5.0 for Qt6 bindings ([#1161](https://github.com/4DNucleome/PartSeg/pull/1161))
54
+ - Require napari>=0.5.0 only for python 3.9+ ([#1162](https://github.com/4DNucleome/PartSeg/pull/1162))
55
+
6
56
  ## 0.15.3 - 2024-07-08
7
57
 
8
58
  ### 🚀 Features
@@ -25,8 +25,10 @@ from qtpy.QtWidgets import (
25
25
  )
26
26
 
27
27
  from PartSeg import plugins, state_store
28
+ from PartSeg._roi_analysis.partseg_settings import PartSettings
28
29
  from PartSeg.common_backend.base_settings import BaseSettings, ViewSettings
29
30
  from PartSeg.common_gui.colormap_creator import PColormapCreator, PColormapList
31
+ from PartSeg.common_gui.dict_viewer import DictViewer
30
32
  from PartSeg.common_gui.label_create import ColorShow, LabelChoose, LabelEditor
31
33
  from PartSeg.common_gui.universal_gui_part import CustomDoubleSpinBox
32
34
  from PartSegCore import plugins as core_plugins
@@ -257,3 +259,20 @@ class AdvancedWindow(QTabWidget):
257
259
  if self.window() == self:
258
260
  self.settings.set_in_profile("advanced_window_geometry", self.saveGeometry().toHex().data().decode("ascii"))
259
261
  super().closeEvent(event)
262
+
263
+
264
+ class ImageMetadata(QWidget):
265
+ def __init__(self, settings: PartSettings, parent=None):
266
+ super().__init__(parent)
267
+ self.settings = settings
268
+ self._dict_viewer = DictViewer(self.settings.image.metadata if self.settings.image else None)
269
+ self.channel_info = QLabel()
270
+ layout = QVBoxLayout()
271
+ layout.addWidget(self._dict_viewer)
272
+ layout.addWidget(self.channel_info)
273
+ self.setLayout(layout)
274
+ self.settings.image_changed.connect(self.update_metadata)
275
+
276
+ def update_metadata(self):
277
+ self._dict_viewer.set_data(self.settings.image.metadata)
278
+ self.channel_info.setText(f"Channels: {self.settings.image.channel_names}")
@@ -632,8 +632,7 @@ class ColorComboBoxGroup(QWidget):
632
632
  if self.settings.get_from_profile(f"{self.viewer_name}.lock_{i}", False)
633
633
  else None
634
634
  )
635
-
636
- return resp
635
+ return [x if x is None or x[0] < x[1] else None for x in resp]
637
636
 
638
637
  def get_gamma(self) -> typing.List[float]:
639
638
  return [
@@ -650,7 +649,10 @@ class ColorComboBoxGroup(QWidget):
650
649
  self.settings.get_from_profile(f"{self.viewer_name}.use_filter_{channel}", NoiseFilterType.No)
651
650
  != NoiseFilterType.No
652
651
  )
653
- widget.set_lock(self.settings.get_from_profile(f"{self.viewer_name}.lock_{channel}", False))
652
+ range_ = self.settings.get_from_profile(f"{self.viewer_name}.range_{channel}", (0, 65000))
653
+ lock = self.settings.get_from_profile(f"{self.viewer_name}.lock_{channel}", False)
654
+
655
+ widget.set_lock(lock and range_[0] < range_[1])
654
656
  widget.set_gamma(self.settings.get_from_profile(f"{self.viewer_name}.gamma_value_{channel}", 1) != 1)
655
657
  if self.active_channel(channel):
656
658
  self.coloring_update.emit()
@@ -381,7 +381,8 @@ class ChannelPreview(QWidget):
381
381
 
382
382
  selection_changed = Signal(str, bool)
383
383
  """checkbox selection changed (name)"""
384
- edit_request = Signal([str], [Colormap])
384
+ edit_request_name = Signal(str)
385
+ edit_request_colormap = Signal(Colormap)
385
386
  """send after pressing edit signal (name) (ColorMap object)"""
386
387
  remove_request = Signal(str)
387
388
  """Signal with name of colormap (name)"""
@@ -419,9 +420,9 @@ class ChannelPreview(QWidget):
419
420
  layout.addWidget(self.label)
420
421
  self.setLayout(layout)
421
422
  self.checked.stateChanged.connect(self._selection_changed)
422
- self.edit_btn.clicked.connect(partial(self.edit_request.emit, name))
423
+ self.edit_btn.clicked.connect(partial(self.edit_request_name.emit, name))
423
424
  if len(colormap.controls) < 20:
424
- self.edit_btn.clicked.connect(partial(self.edit_request[Colormap].emit, colormap))
425
+ self.edit_btn.clicked.connect(partial(self.edit_request_colormap.emit, colormap))
425
426
  self.edit_btn.setToolTip("Create colormap base on this")
426
427
  else:
427
428
  self.edit_btn.setDisabled(True)
@@ -547,7 +548,7 @@ class ColormapList(QWidget):
547
548
  cache_dict[el.name] = el
548
549
  else:
549
550
  el.deleteLater()
550
- el.edit_request[Colormap].disconnect()
551
+ el.edit_request_colormap.disconnect()
551
552
  el.remove_request.disconnect()
552
553
  el.selection_changed.disconnect()
553
554
  selected = self.get_selected()
@@ -560,7 +561,7 @@ class ColormapList(QWidget):
560
561
  widget.set_chosen(name in selected)
561
562
  else:
562
563
  widget = self._create_colormap_preview(colormap, name, removable)
563
- widget.edit_request[Colormap].connect(self.edit_signal)
564
+ widget.edit_request_colormap.connect(self.edit_signal)
564
565
  widget.remove_request.connect(self._remove_request)
565
566
  widget.selection_changed.connect(self.change_selection)
566
567
  layout.addWidget(widget, i // columns, i % columns)
@@ -0,0 +1,38 @@
1
+ """
2
+ Implement dictionary viewer widget
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from qtpy.QtWidgets import QTreeWidget, QTreeWidgetItem, QVBoxLayout, QWidget
8
+
9
+
10
+ class DictViewer(QWidget):
11
+ def __init__(self, data: dict | None = None):
12
+ super().__init__()
13
+ self._data = {}
14
+ self.tree = QTreeWidget()
15
+ self.layout = QVBoxLayout()
16
+ self.layout.addWidget(self.tree)
17
+ self.setLayout(self.layout)
18
+ self.tree.setHeaderLabels(["Key", "Value"])
19
+ self.data = data
20
+
21
+ def set_data(self, data: dict | None):
22
+ if data is None:
23
+ data = {}
24
+ self._data = data
25
+ self.tree.clear()
26
+ self.fill_tree(data, self.tree)
27
+
28
+ def fill_tree(self, data: dict, parent: QTreeWidget | QTreeWidgetItem):
29
+ for key, value in data.items():
30
+ if isinstance(value, dict):
31
+ key_item = QTreeWidgetItem(parent, [key])
32
+ self.fill_tree(value, key_item)
33
+ elif isinstance(value, list):
34
+ key_item = QTreeWidgetItem(parent, [key])
35
+ for i, val in enumerate(value):
36
+ self.fill_tree({str(i): val}, key_item)
37
+ else:
38
+ QTreeWidgetItem(parent, [key, str(value)])
@@ -22,7 +22,7 @@ class ImageAdjustmentDialog(QDialog):
22
22
  for key, val in transform_dict.items():
23
23
  self.choose.addItem(key)
24
24
  initial_values = val.calculate_initial(image)
25
- form_widget = FormWidget(val.get_fields_per_dimension(list(image.get_dimension_letters())), initial_values)
25
+ form_widget = FormWidget(val.get_fields_per_dimension(image), initial_values)
26
26
  self.stacked.addWidget(form_widget)
27
27
 
28
28
  self.choose.currentIndexChanged.connect(self.stacked.setCurrentIndex)
@@ -60,6 +60,11 @@ else:
60
60
  USE_THREADS = True
61
61
 
62
62
 
63
+ class _NapariImage(NapariImage):
64
+ def _update_thumbnail(self, *_, **__):
65
+ """Disable thumbnail update"""
66
+
67
+
63
68
  def get_highlight_colormap():
64
69
  cmap_dict = {0: (0, 0, 0, 0), 1: "white", None: (0, 0, 0, 0)}
65
70
  if _napari_ge_5:
@@ -400,7 +405,7 @@ class ImageView(QWidget):
400
405
  return
401
406
  text = f"{cords}: "
402
407
  if bright_array:
403
- text += str(bright_array[0]) if len(bright_array) == 1 else str(bright_array)
408
+ text += str(bright_array[0]) if len(bright_array) == 1 else "[" + ", ".join(map(str, bright_array)) + "]"
404
409
  self.components = components
405
410
  text += _print_list(components, " component")
406
411
  text += _print_list(alt_components, " alt")
@@ -413,7 +418,7 @@ class ImageView(QWidget):
413
418
  def mask_color(self) -> ColorInfo:
414
419
  """Get mask marking color"""
415
420
  color = Color(np.divide(self.settings.get_from_profile("mask_presentation_color", [255, 255, 255]), 255))
416
- return {0: (0, 0, 0, 0), 1: color.rgba}
421
+ return {0: (0, 0, 0, 0), 1: color.rgba, None: (0, 0, 0, 0)}
417
422
 
418
423
  def get_image(self, image: Optional[Image]) -> Image:
419
424
  if image is not None:
@@ -843,7 +848,12 @@ class ImageView(QWidget):
843
848
  return super().event(event)
844
849
 
845
850
  def _search_component(self):
846
- max_components = max(max(image_info.roi_info.bound_info) for image_info in self.image_info.values())
851
+ try:
852
+ max_components = max(max(image_info.roi_info.bound_info) for image_info in self.image_info.values())
853
+ except ValueError as e:
854
+ if "empty" in e.args[0]:
855
+ return
856
+ raise e
847
857
  if self.viewer.dims.ndisplay == 3:
848
858
  self._search_type = SearchType.Highlight
849
859
 
@@ -1068,7 +1078,7 @@ def _prepare_layers(image: Image, param: ImageParameters, replace: bool) -> Tupl
1068
1078
  blending = "additive" if i != 0 else "translucent"
1069
1079
  data = image.get_channel(i)
1070
1080
 
1071
- layer = NapariImage(
1081
+ layer = _NapariImage(
1072
1082
  data,
1073
1083
  colormap=param.colormaps[i],
1074
1084
  visible=param.visibility[i],
@@ -7,8 +7,6 @@ import sys
7
7
  from contextlib import suppress
8
8
  from functools import partial
9
9
 
10
- from PartSeg._launcher.check_survey import CheckSurveyThread
11
-
12
10
  multiprocessing.freeze_support()
13
11
 
14
12
 
@@ -81,7 +79,17 @@ def create_parser():
81
79
  return parser
82
80
 
83
81
 
84
- def main(): # pragma: no cover
82
+ def main(): # pragma: no cover # noqa: PLR0915
83
+ from importlib.metadata import version
84
+
85
+ from packaging.version import parse as parse_version
86
+
87
+ napari_version = parse_version(version("napari"))
88
+ pydantic_version = parse_version(version("pydantic"))
89
+ if napari_version < parse_version("0.4.19") and pydantic_version >= parse_version("2"):
90
+ print("napari version is too low, please update to version 0.4.19 or higher or downgrade pydantic to version 1")
91
+ sys.exit(1)
92
+
85
93
  if len(sys.argv) > 1 and sys.argv[1] == "_test":
86
94
  _test_imports()
87
95
  return
@@ -100,6 +108,7 @@ def main(): # pragma: no cover
100
108
  from qtpy.QtWidgets import QApplication
101
109
 
102
110
  from PartSeg import state_store
111
+ from PartSeg._launcher.check_survey import CheckSurveyThread
103
112
  from PartSeg._launcher.check_version import CheckVersionThread
104
113
  from PartSeg.common_backend import napari_get_settings
105
114
  from PartSegData import icons_dir
@@ -14,6 +14,7 @@ from PartSeg.plugins import register as register_plugins
14
14
  from PartSeg.plugins.napari_widgets._settings import get_settings
15
15
  from PartSeg.plugins.napari_widgets.utils import NapariFormDialog, generate_image
16
16
  from PartSegCore.roi_info import ROIInfo
17
+ from PartSegImage import Channel
17
18
 
18
19
  if TYPE_CHECKING:
19
20
  from PartSegCore.analysis.measurement_calculation import MeasurementProfile, MeasurementResult
@@ -58,11 +59,13 @@ class NapariMeasurementWidget(MeasurementWidgetBase):
58
59
  if self.channels_chose.value is None:
59
60
  return
60
61
  for name in compute_class.get_channels_num():
61
- if name not in self.napari_viewer.layers:
62
+ if name.value not in self.napari_viewer.layers:
62
63
  show_info(f"Cannot calculate this measurement because image do not have layer {name}")
63
64
  return
64
65
  units = self.units_choose.currentEnum()
65
- image = generate_image(self.napari_viewer, self.channels_chose.value.name, *compute_class.get_channels_num())
66
+ image = generate_image(
67
+ self.napari_viewer, Channel(self.channels_chose.value.name), *compute_class.get_channels_num()
68
+ )
66
69
  if self.mask_chose.value is not None:
67
70
  image.set_mask(self.mask_chose.value.data)
68
71
  roi_info = ROIInfo(self.roi_chose.value.data).fit_to_image(image)
@@ -61,8 +61,10 @@ class NapariFormDialog(FormDialog):
61
61
  def generate_image(viewer: Viewer, *layer_names):
62
62
  axis_order = Image.axis_order.replace("C", "")
63
63
  image_list = []
64
+ if isinstance(layer_names[0], str):
65
+ layer_names = [Channel(el) for el in layer_names]
64
66
  for name in dict.fromkeys(layer_names):
65
- image_layer = viewer.layers[name]
67
+ image_layer = viewer.layers[name.value]
66
68
  data_scale = image_layer.scale[-3:] / UNIT_SCALE[Units.nm.value]
67
69
  image_list.append(
68
70
  Image(
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.15.4b0'
15
+ __version__ = version = '0.15.4b2'
16
16
  __version_tuple__ = version_tuple = (0, 15, 4)