PartSeg 0.15.4__tar.gz → 0.15.4b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. {partseg-0.15.4 → partseg-0.15.4b1}/PKG-INFO +9 -41
  2. {partseg-0.15.4 → partseg-0.15.4b1}/changelog.md +1 -33
  3. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_launcher/check_survey.py +1 -3
  4. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_launcher/check_version.py +4 -2
  5. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/export_batch.py +1 -1
  6. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/changelog.py +1 -33
  7. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/except_hook.py +1 -1
  8. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/segmentation_thread.py +1 -3
  9. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/advanced_tabs.py +2 -6
  10. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/algorithms_description.py +1 -6
  11. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/dict_viewer.py +1 -1
  12. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/error_report.py +2 -2
  13. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/napari_image_view.py +9 -22
  14. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/launcher_main.py +9 -12
  15. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/napari.yaml +0 -5
  16. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/__init__.py +0 -8
  17. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/__init__.py +0 -2
  18. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/lables_control.py +2 -5
  19. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/search_label_widget.py +0 -3
  20. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/simple_measurement_widget.py +1 -1
  21. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/utils.py +3 -3
  22. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/version.py +1 -1
  23. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg.egg-info/PKG-INFO +9 -41
  24. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg.egg-info/SOURCES.txt +0 -1
  25. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg.egg-info/requires.txt +3 -3
  26. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/algorithm_describe_base.py +1 -1
  27. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/batch_processing/batch_backend.py +3 -6
  28. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/load_functions.py +1 -1
  29. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/measurement_calculation.py +2 -2
  30. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_transforming/image_projection.py +2 -2
  31. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/mask/io_functions.py +1 -1
  32. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/loader.py +0 -46
  33. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/save_tiff_layer.py +5 -5
  34. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/threshold.py +2 -2
  35. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegImage/__init__.py +1 -3
  36. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegImage/image.py +68 -259
  37. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegImage/image_reader.py +25 -38
  38. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegImage/tifffile_fixes.py +1 -1
  39. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/conftest.py +24 -37
  40. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/conftest.py +5 -11
  41. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_batch.py +1 -1
  42. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_export_batch.py +2 -2
  43. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_image_view.py +4 -4
  44. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_main_window.py +4 -4
  45. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_mask/test_batch.py +1 -1
  46. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_mask/test_main_window.py +4 -4
  47. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_analysis.py +8 -8
  48. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_base_widgets.py +4 -4
  49. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_channel_control.py +6 -6
  50. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_check_release.py +7 -12
  51. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_common_backend.py +11 -13
  52. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_common_gui.py +18 -30
  53. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_main_windows.py +6 -6
  54. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_napari_image_view.py +9 -13
  55. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_napari_widgets.py +11 -49
  56. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_roi_analysis_batch.py +1 -1
  57. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_sentry.py +23 -31
  58. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_settings.py +9 -13
  59. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_viewer.py +6 -6
  60. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_analysis_batch.py +16 -16
  61. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_image_adjustment.py +5 -5
  62. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_io.py +6 -6
  63. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_mask_create.py +1 -1
  64. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_measurements.py +18 -18
  65. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_napari_plugins.py +10 -31
  66. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_segmentation.py +7 -7
  67. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegImage/test_image.py +75 -205
  68. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegImage/test_image_reader.py +0 -2
  69. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegImage/test_image_writer.py +7 -34
  70. {partseg-0.15.4 → partseg-0.15.4b1}/pyproject.toml +3 -22
  71. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.10.txt +55 -54
  72. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.10_pydantic_1.txt +54 -53
  73. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.11.txt +57 -56
  74. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.11_docs.txt +75 -52
  75. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.11_pydantic_1.txt +56 -55
  76. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.12.txt +55 -54
  77. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.12_pydantic_1.txt +54 -53
  78. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.8.txt +40 -39
  79. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.8_pydantic_1.txt +39 -38
  80. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.9.txt +50 -49
  81. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/constraints_py3.9_pydantic_1.txt +49 -48
  82. partseg-0.15.4/package/PartSeg/plugins/napari_widgets/metadata_viewer.py +0 -29
  83. {partseg-0.15.4 → partseg-0.15.4b1}/.napari/DESCRIPTION.md +0 -0
  84. {partseg-0.15.4 → partseg-0.15.4b1}/.napari/config.yml +0 -0
  85. {partseg-0.15.4 → partseg-0.15.4b1}/CITATION.cff +0 -0
  86. {partseg-0.15.4 → partseg-0.15.4b1}/License.txt +0 -0
  87. {partseg-0.15.4 → partseg-0.15.4b1}/MANIFEST.in +0 -0
  88. {partseg-0.15.4 → partseg-0.15.4b1}/Readme.md +0 -0
  89. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/__init__.py +0 -0
  90. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/__main__.py +0 -0
  91. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_launcher/__init__.py +0 -0
  92. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_launcher/main_window.py +0 -0
  93. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/__init__.py +0 -0
  94. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/advanced_window.py +0 -0
  95. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/batch_window.py +0 -0
  96. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/calculation_pipeline_thread.py +0 -0
  97. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/image_view.py +0 -0
  98. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/main_window.py +0 -0
  99. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/measurement_widget.py +0 -0
  100. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/partseg_settings.py +0 -0
  101. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/prepare_plan_widget.py +0 -0
  102. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_analysis/profile_export.py +0 -0
  103. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/__init__.py +0 -0
  104. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/batch_proceed.py +0 -0
  105. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/image_view.py +0 -0
  106. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/main_window.py +0 -0
  107. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/segmentation_info_dialog.py +0 -0
  108. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/simple_measurements.py +0 -0
  109. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/_roi_mask/stack_settings.py +0 -0
  110. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/__init__.py +0 -0
  111. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/abstract_class.py +0 -0
  112. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/base_argparser.py +0 -0
  113. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/base_settings.py +0 -0
  114. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/load_backup.py +0 -0
  115. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/partially_const_dict.py +0 -0
  116. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/progress_thread.py +0 -0
  117. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_backend/python_syntax_highlight.py +0 -0
  118. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/__init__.py +0 -0
  119. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/about_dialog.py +0 -0
  120. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/channel_control.py +0 -0
  121. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/collapse_checkbox.py +0 -0
  122. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/colormap_creator.py +0 -0
  123. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/custom_buttons.py +0 -0
  124. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/custom_load_dialog.py +0 -0
  125. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/custom_save_dialog.py +0 -0
  126. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/equal_column_layout.py +0 -0
  127. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/exception_hooks.py +0 -0
  128. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/flow_layout.py +0 -0
  129. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/icon_selector.py +0 -0
  130. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/image_adjustment.py +0 -0
  131. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/label_create.py +0 -0
  132. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/lock_checkbox.py +0 -0
  133. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/main_window.py +0 -0
  134. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/mask_widget.py +0 -0
  135. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/multiple_file_widget.py +0 -0
  136. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/napari_viewer_wrap.py +0 -0
  137. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/numpy_qimage.py +0 -0
  138. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/qt_console.py +0 -0
  139. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/qt_modal.py +0 -0
  140. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/qt_util.py +0 -0
  141. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/searchable_combo_box.py +0 -0
  142. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/searchable_list_widget.py +0 -0
  143. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/select_multiple_files.py +0 -0
  144. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/show_directory_dialog.py +0 -0
  145. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/stack_image_view.py +0 -0
  146. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/stacked_widget_with_selector.py +0 -0
  147. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/universal_gui_part.py +0 -0
  148. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/common_gui/waiting_dialog.py +0 -0
  149. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/itk_snap_save/__init__.py +0 -0
  150. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/modeling_save/__init__.py +0 -0
  151. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/modeling_save/save_modeling_data.py +0 -0
  152. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/_settings.py +0 -0
  153. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/algorithm_widgets.py +0 -0
  154. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/colormap_control.py +0 -0
  155. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/copy_labels.py +0 -0
  156. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/mask_create_widget.py +0 -0
  157. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/measurement_widget.py +0 -0
  158. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/napari_widgets/roi_extraction_algorithms.py +0 -0
  159. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/old_partseg/__init__.py +0 -0
  160. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/plugins/old_partseg/old_partseg.py +0 -0
  161. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg/state_store.py +0 -0
  162. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg.egg-info/dependency_links.txt +0 -0
  163. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg.egg-info/entry_points.txt +0 -0
  164. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSeg.egg-info/top_level.txt +0 -0
  165. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/__init__.py +0 -0
  166. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/_old_json_hooks.py +0 -0
  167. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/__init__.py +0 -0
  168. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/algorithm_description.py +0 -0
  169. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/analysis_utils.py +0 -0
  170. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/batch_processing/__init__.py +0 -0
  171. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/batch_processing/parallel_backend.py +0 -0
  172. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/calculate_pipeline.py +0 -0
  173. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/calculation_plan.py +0 -0
  174. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/io_utils.py +0 -0
  175. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/measurement_base.py +0 -0
  176. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/analysis/save_functions.py +0 -0
  177. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/autofit.py +0 -0
  178. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/channel_class.py +0 -0
  179. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/class_generator.py +0 -0
  180. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/color_image/__init__.py +0 -0
  181. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/color_image/base_colors.py +0 -0
  182. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/color_image/color_data.py +0 -0
  183. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/convex_fill.py +0 -0
  184. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/custom_name_generate.py +0 -0
  185. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_operations.py +0 -0
  186. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_transforming/__init__.py +0 -0
  187. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_transforming/combine_channels.py +0 -0
  188. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_transforming/interpolate_image.py +0 -0
  189. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_transforming/swap_time_stack.py +0 -0
  190. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/image_transforming/transform_base.py +0 -0
  191. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/io_utils.py +0 -0
  192. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/json_hooks.py +0 -0
  193. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/mask/__init__.py +0 -0
  194. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/mask/algorithm_description.py +0 -0
  195. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/mask/history_utils.py +0 -0
  196. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/mask_create.py +0 -0
  197. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/mask_partition_utils.py +0 -0
  198. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/__init__.py +0 -0
  199. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/load_image.py +0 -0
  200. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/load_mask_project.py +0 -0
  201. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/load_masked_image.py +0 -0
  202. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/load_roi_project.py +0 -0
  203. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/napari_plugins/save_mask_roi.py +0 -0
  204. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/plugins/__init__.py +0 -0
  205. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/project_info.py +0 -0
  206. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/register.py +0 -0
  207. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/roi_info.py +0 -0
  208. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/__init__.py +0 -0
  209. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/algorithm_base.py +0 -0
  210. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/border_smoothing.py +0 -0
  211. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/mu_mid_point.py +0 -0
  212. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/noise_filtering.py +0 -0
  213. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/restartable_segmentation_algorithms.py +0 -0
  214. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/segmentation_algorithm.py +0 -0
  215. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/utils.py +0 -0
  216. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/segmentation/watershed.py +0 -0
  217. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/sphinx/__init__.py +0 -0
  218. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/sphinx/auto_parameters.py +0 -0
  219. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/universal_const.py +0 -0
  220. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegCore/utils.py +0 -0
  221. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegImage/channel_class.py +0 -0
  222. {partseg-0.15.4 → partseg-0.15.4b1}/package/PartSegImage/image_writer.py +0 -0
  223. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/__init__.py +0 -0
  224. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/__init__.py +0 -0
  225. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_advanced_window.py +0 -0
  226. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_batch_window.py +0 -0
  227. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_analysis/test_profile_export.py +0 -0
  228. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/roi_mask/__init__.py +0 -0
  229. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_base.py +0 -0
  230. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_check_survey.py +0 -0
  231. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_colormap_create.py +0 -0
  232. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_io.py +0 -0
  233. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_label_choose.py +0 -0
  234. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_launcher.py +0 -0
  235. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSeg/test_window_import.py +0 -0
  236. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/__init__.py +0 -0
  237. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/segmentation/__init__.py +0 -0
  238. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/segmentation/test_algorithm_base.py +0 -0
  239. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py +0 -0
  240. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/segmentation/test_threshold.py +0 -0
  241. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_algorithm_describe_base.py +0 -0
  242. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_base.py +0 -0
  243. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_class_generator.py +0 -0
  244. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_class_register.py +0 -0
  245. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_json_hooks.py +0 -0
  246. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_mask_partition.py +0 -0
  247. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_min_req.py +0 -0
  248. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_mso.py +0 -0
  249. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_pipeline.py +0 -0
  250. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_segmentation_proceses.py +0 -0
  251. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_smooth.py +0 -0
  252. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegCore/test_utils.py +0 -0
  253. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegImage/__init__.py +0 -0
  254. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_PartSegImage/test_channel_class.py +0 -0
  255. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/calculation_plan_0.9.2.3.json +0 -0
  256. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/measurements_profile.json +0 -0
  257. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/napari_measurements_profile.json +0 -0
  258. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/notebook/neuron_types_measurment.json +0 -0
  259. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/notebook/neuron_types_segmentation.json +0 -0
  260. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/notebook/segment_data.json +0 -0
  261. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.10.4/analysis/batch_plans_save.json +0 -0
  262. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_pipeline_save.json +0 -0
  263. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_profiles_save.json +0 -0
  264. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.10.4/analysis/segmentation_settings.json +0 -0
  265. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.10.4/analysis/statistic_profiles_save.json +0 -0
  266. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.10.4/analysis/view_settings.json +0 -0
  267. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/analysis/batch_plans_save.json +0 -0
  268. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_pipeline_save.json +0 -0
  269. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_profiles_save.json +0 -0
  270. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/analysis/segmentation_settings.json +0 -0
  271. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/analysis/statistic_profiles_save.json +0 -0
  272. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/analysis/view_settings.json +0 -0
  273. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/mask/segmentation_settings.json +0 -0
  274. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.1/mask/view_settings.json +0 -0
  275. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/analysis/batch_plans_save.json +0 -0
  276. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_pipeline_save.json +0 -0
  277. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_profiles_save.json +0 -0
  278. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/analysis/segmentation_settings.json +0 -0
  279. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/analysis/statistic_profiles_save.json +0 -0
  280. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/analysis/view_settings.json +0 -0
  281. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/mask/segmentation_settings.json +0 -0
  282. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.14/mask/view_settings.json +0 -0
  283. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/analysis/batch_plans_save.json +0 -0
  284. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_pipeline_save.json +0 -0
  285. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_profiles_save.json +0 -0
  286. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/analysis/segmentation_settings.json +0 -0
  287. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/analysis/statistic_profiles_save.json +0 -0
  288. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/analysis/view_settings.json +0 -0
  289. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/mask/segmentation_settings.json +0 -0
  290. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.13.15/mask/view_settings.json +0 -0
  291. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.8.6/analysis/batch_plans_save.json +0 -0
  292. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_pipeline_save.json +0 -0
  293. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_profiles_save.json +0 -0
  294. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.8.6/analysis/segmentation_settings.json +0 -0
  295. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.8.6/analysis/statistic_profiles_save.json +0 -0
  296. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/old_saves/0.8.6/analysis/view_settings.json +0 -0
  297. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/ome.xsd.xml +0 -0
  298. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/problematic_excel_batch.xlsx +0 -0
  299. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/problematic_json_batch.json +0 -0
  300. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/problematic_profile_dict.json +0 -0
  301. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/range_profile.json +0 -0
  302. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/sample_batch_output.xlsx +0 -0
  303. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/segment_profile_0.9.2.3.json +0 -0
  304. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/view_settings_v0.12.6.json +0 -0
  305. {partseg-0.15.4 → partseg-0.15.4b1}/package/tests/test_data/workflow.json +0 -0
  306. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/dependabot_runtime.txt +0 -0
  307. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/pre_test_problematic_version.txt +0 -0
  308. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/pydantic_1.txt +0 -0
  309. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/requirements_ci.txt +0 -0
  310. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/requirements_dev.txt +0 -0
  311. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/requirements_test.txt +0 -0
  312. {partseg-0.15.4 → partseg-0.15.4b1}/requirements/version_denylist.txt +0 -0
  313. {partseg-0.15.4 → partseg-0.15.4b1}/setup.cfg +0 -0
  314. {partseg-0.15.4 → partseg-0.15.4b1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PartSeg
3
- Version: 0.15.4
3
+ Version: 0.15.4b1
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
@@ -57,12 +57,12 @@ Requires-Dist: openpyxl>=2.5.7
57
57
  Requires-Dist: packaging>=20.0
58
58
  Requires-Dist: pandas>=1.1.0
59
59
  Requires-Dist: psygnal>=0.3.1
60
- Requires-Dist: pydantic<3,>=1.9.1
60
+ Requires-Dist: pydantic>=1.9.1
61
61
  Requires-Dist: pygments>=2.12.0
62
62
  Requires-Dist: qtconsole>=4.7.7
63
- Requires-Dist: requests>=2.25.0
63
+ Requires-Dist: requests>=2.18.0
64
64
  Requires-Dist: scipy>=1.4.1
65
- Requires-Dist: sentry-sdk>=2.4.0
65
+ Requires-Dist: sentry-sdk>=0.14.3
66
66
  Requires-Dist: six>=1.11.0
67
67
  Requires-Dist: superqt>=0.3.0
68
68
  Requires-Dist: sympy>=1.1.1
@@ -149,10 +149,10 @@ This application is designed to help biologist with segmentation based on thresh
149
149
 
150
150
  - From binaries:
151
151
 
152
- - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4/PartSeg-0.15.4-windows.zip) (build on Windows 10)
153
- - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4/PartSeg-0.15.4-linux.zip) (build on Ubuntu 20.04)
154
- - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4/PartSeg-0.15.4-macos.zip) (build on macOS 13)
155
- - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4/PartSeg-0.15.4-macos-arm64.zip) (build on macOS 14)
152
+ - [Windows](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b1/PartSeg-0.15.4b1-windows.zip) (build on Windows 10)
153
+ - [Linux](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b1/PartSeg-0.15.4b1-linux.zip) (build on Ubuntu 20.04)
154
+ - [macOS](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b1/PartSeg-0.15.4b1-macos.zip) (build on macOS 13)
155
+ - [macOS arm](https://github.com/4DNucleome/PartSeg/releases/download/v0.15.4b1/PartSeg-0.15.4b1-macos-arm64.zip) (build on macOS 14)
156
156
  There are reported problems with permissions systems on macOS. If you have a problem with starting the application, please try to run it from the terminal.
157
157
 
158
158
  - With pip:
@@ -242,15 +242,12 @@ from 3D microscopy images for dummies. BMC Bioinformatics 22, 72 (2021).
242
242
 
243
243
  All notable changes to this project will be documented in this file.
244
244
 
245
- ### 0.15.4 - 2024-09-27
245
+ ### 0.15.4b - 2024-07-23
246
246
 
247
247
  #### 🚀 Features
248
248
 
249
249
  - Add preview of image metadata ([#1154](https://github.com/4DNucleome/PartSeg/pull/1154))
250
250
  - Add option to combine channels using sum and max ([#1159](https://github.com/4DNucleome/PartSeg/pull/1159))
251
- - Add metadata viewer as napari widget ([#1195](https://github.com/4DNucleome/PartSeg/pull/1195))
252
- - Read channel colors from `*.czi` metadata ([#1198](https://github.com/4DNucleome/PartSeg/pull/1198))
253
- - Use image color when add layer to napari ([#1200](https://github.com/4DNucleome/PartSeg/pull/1200))
254
251
 
255
252
  #### 🐛 Bug Fixes
256
253
 
@@ -263,36 +260,18 @@ All notable changes to this project will be documented in this file.
263
260
  - Prevent error on searching component if there is no component ([#1167](https://github.com/4DNucleome/PartSeg/pull/1167))
264
261
  - Fix checking if channel requested by MeasurementProfile exists ([#1165](https://github.com/4DNucleome/PartSeg/pull/1165))
265
262
  - Fix trying to access to just deleted measurement profile from edit window. ([#1168](https://github.com/4DNucleome/PartSeg/pull/1168))
266
- - Fix bug in code for checking for survey file ([#1174](https://github.com/4DNucleome/PartSeg/pull/1174))
267
- - Fix plugin discovery in bundle to register them in napari viewer ([#1175](https://github.com/4DNucleome/PartSeg/pull/1175))
268
- - Fix problem with setting range of auto-generated widget ([#1187](https://github.com/4DNucleome/PartSeg/pull/1187))
269
- - Fix reading channel names from single channel czi files ([#1194](https://github.com/4DNucleome/PartSeg/pull/1194))
270
-
271
- #### 🚜 Refactor
272
-
273
- - Make warnings error in tests ([#1192](https://github.com/4DNucleome/PartSeg/pull/1192))
274
- - Merge all channel-specific attributes of the Image class ([#1191](https://github.com/4DNucleome/PartSeg/pull/1191))
275
263
 
276
264
  #### 📚 Documentation
277
265
 
278
266
  - Change homepage URL ([#1139](https://github.com/4DNucleome/PartSeg/pull/1139))
279
267
  - Add link for download macOS arm bundle ([#1140](https://github.com/4DNucleome/PartSeg/pull/1140))
280
268
  - Add changelog for 0.15.4 release
281
- - Update changelog ([#1176](https://github.com/4DNucleome/PartSeg/pull/1176))
282
269
 
283
270
  #### 🧪 Testing
284
271
 
285
272
  - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `sympy` ([#1128](https://github.com/4DNucleome/PartSeg/pull/1128))
286
273
  - \[Automatic\] Constraints upgrades: `mahotas`, `numpy`, `sentry-sdk`, `sympy` ([#1145](https://github.com/4DNucleome/PartSeg/pull/1145))
287
274
  - \[Automatic\] Constraints upgrades: `numpy`, `tifffile` ([#1163](https://github.com/4DNucleome/PartSeg/pull/1163))
288
- - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `tifffile` ([#1169](https://github.com/4DNucleome/PartSeg/pull/1169))
289
- - \[Automatic\] Constraints upgrades: `magicgui`, `sentry-sdk` ([#1172](https://github.com/4DNucleome/PartSeg/pull/1172))
290
- - \[Automatic\] Constraints upgrades: `sympy`, `tifffile` ([#1177](https://github.com/4DNucleome/PartSeg/pull/1177))
291
- - \[Automatic\] Constraints upgrades: `imageio`, `napari`, `numpy` ([#1180](https://github.com/4DNucleome/PartSeg/pull/1180))
292
- - Constraints upgrades: `sentry-sdk` and fix tests ([#1182](https://github.com/4DNucleome/PartSeg/pull/1182))
293
- - `napari==0.5.3` related fixes, Constraints upgrades: `imageio`, `ipython`, `numpy`, `qtconsole`, `scipy`, `simpleitk`, `tifffile` ([#1183](https://github.com/4DNucleome/PartSeg/pull/1183))
294
- - \[Automatic\] Constraints upgrades: `numpy`, `pydantic` ([#1188](https://github.com/4DNucleome/PartSeg/pull/1188))
295
- - \[Automatic\] Constraints upgrades: `imagecodecs`, `pandas`, `pydantic`, `sentry-sdk`, `sympy`, `tifffile` ([#1190](https://github.com/4DNucleome/PartSeg/pull/1190))
296
275
 
297
276
  #### ⚙️ Miscellaneous Tasks
298
277
 
@@ -305,17 +284,6 @@ All notable changes to this project will be documented in this file.
305
284
  - Fix tests for napari from repository ([#1148](https://github.com/4DNucleome/PartSeg/pull/1148))
306
285
  - Use python 3.11 to determine updated packages in PR description ([#1160](https://github.com/4DNucleome/PartSeg/pull/1160))
307
286
  - \[pre-commit.ci\] pre-commit autoupdate ([#1164](https://github.com/4DNucleome/PartSeg/pull/1164))
308
- - \[pre-commit.ci\] pre-commit autoupdate ([#1170](https://github.com/4DNucleome/PartSeg/pull/1170))
309
- - Disable thumbnail generation in napari layer as it is fragile and not used ([#1171](https://github.com/4DNucleome/PartSeg/pull/1171))
310
- - \[pre-commit.ci\] pre-commit autoupdate ([#1173](https://github.com/4DNucleome/PartSeg/pull/1173))
311
- - \[pre-commit.ci\] pre-commit autoupdate ([#1178](https://github.com/4DNucleome/PartSeg/pull/1178))
312
- - Fix call of logger to properly pass arguments to messages ([#1179](https://github.com/4DNucleome/PartSeg/pull/1179))
313
- - Fix coverage files upload by enable hidden files upload ([#1186](https://github.com/4DNucleome/PartSeg/pull/1186))
314
- - \[pre-commit.ci\] pre-commit autoupdate ([#1184](https://github.com/4DNucleome/PartSeg/pull/1184))
315
- - Use PyQt6 in pre-tests ([#1196](https://github.com/4DNucleome/PartSeg/pull/1196))
316
- - Add missed code from #1191 ([#1197](https://github.com/4DNucleome/PartSeg/pull/1197))
317
- - \[pre-commit.ci\] pre-commit autoupdate ([#1189](https://github.com/4DNucleome/PartSeg/pull/1189))
318
- - Auto add "skip check PR title" label in update dependencies PR ([#1199](https://github.com/4DNucleome/PartSeg/pull/1199))
319
287
 
320
288
  #### Build
321
289
 
@@ -2,15 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## 0.15.4 - 2024-09-27
5
+ ## 0.15.4b - 2024-07-23
6
6
 
7
7
  ### 🚀 Features
8
8
 
9
9
  - Add preview of image metadata ([#1154](https://github.com/4DNucleome/PartSeg/pull/1154))
10
10
  - Add option to combine channels using sum and max ([#1159](https://github.com/4DNucleome/PartSeg/pull/1159))
11
- - Add metadata viewer as napari widget ([#1195](https://github.com/4DNucleome/PartSeg/pull/1195))
12
- - Read channel colors from `*.czi` metadata ([#1198](https://github.com/4DNucleome/PartSeg/pull/1198))
13
- - Use image color when add layer to napari ([#1200](https://github.com/4DNucleome/PartSeg/pull/1200))
14
11
 
15
12
  ### 🐛 Bug Fixes
16
13
 
@@ -23,36 +20,18 @@ All notable changes to this project will be documented in this file.
23
20
  - Prevent error on searching component if there is no component ([#1167](https://github.com/4DNucleome/PartSeg/pull/1167))
24
21
  - Fix checking if channel requested by MeasurementProfile exists ([#1165](https://github.com/4DNucleome/PartSeg/pull/1165))
25
22
  - Fix trying to access to just deleted measurement profile from edit window. ([#1168](https://github.com/4DNucleome/PartSeg/pull/1168))
26
- - Fix bug in code for checking for survey file ([#1174](https://github.com/4DNucleome/PartSeg/pull/1174))
27
- - Fix plugin discovery in bundle to register them in napari viewer ([#1175](https://github.com/4DNucleome/PartSeg/pull/1175))
28
- - Fix problem with setting range of auto-generated widget ([#1187](https://github.com/4DNucleome/PartSeg/pull/1187))
29
- - Fix reading channel names from single channel czi files ([#1194](https://github.com/4DNucleome/PartSeg/pull/1194))
30
-
31
- ### 🚜 Refactor
32
-
33
- - Make warnings error in tests ([#1192](https://github.com/4DNucleome/PartSeg/pull/1192))
34
- - Merge all channel-specific attributes of the Image class ([#1191](https://github.com/4DNucleome/PartSeg/pull/1191))
35
23
 
36
24
  ### 📚 Documentation
37
25
 
38
26
  - Change homepage URL ([#1139](https://github.com/4DNucleome/PartSeg/pull/1139))
39
27
  - Add link for download macOS arm bundle ([#1140](https://github.com/4DNucleome/PartSeg/pull/1140))
40
28
  - Add changelog for 0.15.4 release
41
- - Update changelog ([#1176](https://github.com/4DNucleome/PartSeg/pull/1176))
42
29
 
43
30
  ### 🧪 Testing
44
31
 
45
32
  - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `sympy` ([#1128](https://github.com/4DNucleome/PartSeg/pull/1128))
46
33
  - \[Automatic\] Constraints upgrades: `mahotas`, `numpy`, `sentry-sdk`, `sympy` ([#1145](https://github.com/4DNucleome/PartSeg/pull/1145))
47
34
  - \[Automatic\] Constraints upgrades: `numpy`, `tifffile` ([#1163](https://github.com/4DNucleome/PartSeg/pull/1163))
48
- - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `tifffile` ([#1169](https://github.com/4DNucleome/PartSeg/pull/1169))
49
- - \[Automatic\] Constraints upgrades: `magicgui`, `sentry-sdk` ([#1172](https://github.com/4DNucleome/PartSeg/pull/1172))
50
- - \[Automatic\] Constraints upgrades: `sympy`, `tifffile` ([#1177](https://github.com/4DNucleome/PartSeg/pull/1177))
51
- - \[Automatic\] Constraints upgrades: `imageio`, `napari`, `numpy` ([#1180](https://github.com/4DNucleome/PartSeg/pull/1180))
52
- - Constraints upgrades: `sentry-sdk` and fix tests ([#1182](https://github.com/4DNucleome/PartSeg/pull/1182))
53
- - `napari==0.5.3` related fixes, Constraints upgrades: `imageio`, `ipython`, `numpy`, `qtconsole`, `scipy`, `simpleitk`, `tifffile` ([#1183](https://github.com/4DNucleome/PartSeg/pull/1183))
54
- - \[Automatic\] Constraints upgrades: `numpy`, `pydantic` ([#1188](https://github.com/4DNucleome/PartSeg/pull/1188))
55
- - \[Automatic\] Constraints upgrades: `imagecodecs`, `pandas`, `pydantic`, `sentry-sdk`, `sympy`, `tifffile` ([#1190](https://github.com/4DNucleome/PartSeg/pull/1190))
56
35
 
57
36
  ### ⚙️ Miscellaneous Tasks
58
37
 
@@ -65,17 +44,6 @@ All notable changes to this project will be documented in this file.
65
44
  - Fix tests for napari from repository ([#1148](https://github.com/4DNucleome/PartSeg/pull/1148))
66
45
  - Use python 3.11 to determine updated packages in PR description ([#1160](https://github.com/4DNucleome/PartSeg/pull/1160))
67
46
  - \[pre-commit.ci\] pre-commit autoupdate ([#1164](https://github.com/4DNucleome/PartSeg/pull/1164))
68
- - \[pre-commit.ci\] pre-commit autoupdate ([#1170](https://github.com/4DNucleome/PartSeg/pull/1170))
69
- - Disable thumbnail generation in napari layer as it is fragile and not used ([#1171](https://github.com/4DNucleome/PartSeg/pull/1171))
70
- - \[pre-commit.ci\] pre-commit autoupdate ([#1173](https://github.com/4DNucleome/PartSeg/pull/1173))
71
- - \[pre-commit.ci\] pre-commit autoupdate ([#1178](https://github.com/4DNucleome/PartSeg/pull/1178))
72
- - Fix call of logger to properly pass arguments to messages ([#1179](https://github.com/4DNucleome/PartSeg/pull/1179))
73
- - Fix coverage files upload by enable hidden files upload ([#1186](https://github.com/4DNucleome/PartSeg/pull/1186))
74
- - \[pre-commit.ci\] pre-commit autoupdate ([#1184](https://github.com/4DNucleome/PartSeg/pull/1184))
75
- - Use PyQt6 in pre-tests ([#1196](https://github.com/4DNucleome/PartSeg/pull/1196))
76
- - Add missed code from #1191 ([#1197](https://github.com/4DNucleome/PartSeg/pull/1197))
77
- - \[pre-commit.ci\] pre-commit autoupdate ([#1189](https://github.com/4DNucleome/PartSeg/pull/1189))
78
- - Auto add "skip check PR title" label in update dependencies PR ([#1199](https://github.com/4DNucleome/PartSeg/pull/1199))
79
47
 
80
48
  ### Build
81
49
 
@@ -15,7 +15,7 @@ from PartSeg import state_store
15
15
  IGNORE_DAYS = 21
16
16
  IGNORE_FILE = "ignore_survey.txt"
17
17
 
18
- IGNORE_FILE_PATH = (Path(state_store.save_folder) / ".." / IGNORE_FILE).resolve()
18
+ IGNORE_FILE_PATH = Path(state_store.save_folder) / ".." / IGNORE_FILE
19
19
 
20
20
 
21
21
  class SurveyMessageBox(QMessageBox):
@@ -45,8 +45,6 @@ class SurveyMessageBox(QMessageBox):
45
45
 
46
46
  def exec_(self):
47
47
  result = super().exec_()
48
- if not IGNORE_FILE_PATH.parent.exists():
49
- IGNORE_FILE_PATH.parent.mkdir(parents=True)
50
48
  IGNORE_FILE_PATH.touch()
51
49
  return result
52
50
 
@@ -24,7 +24,9 @@ class CheckVersionThread(QThread):
24
24
  .. _PYPI: https://pypi.org/project/PartSeg/
25
25
  """
26
26
 
27
- def __init__(self, package_name="PartSeg", default_url="https://partseg.github.io/", base_version=__version__):
27
+ def __init__(
28
+ self, package_name="PartSeg", default_url="https://4dnucleome.cent.uw.edu.pl/PartSeg/", base_version=__version__
29
+ ):
28
30
  super().__init__()
29
31
  self.release = base_version
30
32
  self.base_release = base_version
@@ -55,7 +57,7 @@ class CheckVersionThread(QThread):
55
57
  except (KeyError, urllib.error.URLError): # pragma: no cover
56
58
  pass
57
59
  except Exception as e: # pylint: disable=broad-except
58
- with sentry_sdk.new_scope() as scope:
60
+ with sentry_sdk.push_scope() as scope:
59
61
  scope.set_tag("auto_report", "true")
60
62
  scope.set_tag("check_version", "true")
61
63
  sentry_sdk.capture_exception(e)
@@ -392,7 +392,7 @@ def sleep_with_rate(response: requests.Response):
392
392
  reset = int(response.headers["X-RateLimit-Reset"])
393
393
  sleep_time = reset - time.time()
394
394
  if sleep_time > 0:
395
- logging.info("Sleeping for %(sleep_time) seconds", extra={"sleep_time": sleep_time})
395
+ logging.info("Sleeping for {sleep_time} seconds", extra={"sleep_time": sleep_time})
396
396
  time.sleep(sleep_time)
397
397
 
398
398
 
@@ -3,15 +3,12 @@ changelog = """
3
3
 
4
4
  All notable changes to this project will be documented in this file.
5
5
 
6
- ## 0.15.4 - 2024-09-27
6
+ ## 0.15.4b - 2024-07-23
7
7
 
8
8
  ### 🚀 Features
9
9
 
10
10
  - Add preview of image metadata ([#1154](https://github.com/4DNucleome/PartSeg/pull/1154))
11
11
  - Add option to combine channels using sum and max ([#1159](https://github.com/4DNucleome/PartSeg/pull/1159))
12
- - Add metadata viewer as napari widget ([#1195](https://github.com/4DNucleome/PartSeg/pull/1195))
13
- - Read channel colors from `*.czi` metadata ([#1198](https://github.com/4DNucleome/PartSeg/pull/1198))
14
- - Use image color when add layer to napari ([#1200](https://github.com/4DNucleome/PartSeg/pull/1200))
15
12
 
16
13
  ### 🐛 Bug Fixes
17
14
 
@@ -24,36 +21,18 @@ All notable changes to this project will be documented in this file.
24
21
  - Prevent error on searching component if there is no component ([#1167](https://github.com/4DNucleome/PartSeg/pull/1167))
25
22
  - Fix checking if channel requested by MeasurementProfile exists ([#1165](https://github.com/4DNucleome/PartSeg/pull/1165))
26
23
  - Fix trying to access to just deleted measurement profile from edit window. ([#1168](https://github.com/4DNucleome/PartSeg/pull/1168))
27
- - Fix bug in code for checking for survey file ([#1174](https://github.com/4DNucleome/PartSeg/pull/1174))
28
- - Fix plugin discovery in bundle to register them in napari viewer ([#1175](https://github.com/4DNucleome/PartSeg/pull/1175))
29
- - Fix problem with setting range of auto-generated widget ([#1187](https://github.com/4DNucleome/PartSeg/pull/1187))
30
- - Fix reading channel names from single channel czi files ([#1194](https://github.com/4DNucleome/PartSeg/pull/1194))
31
-
32
- ### 🚜 Refactor
33
-
34
- - Make warnings error in tests ([#1192](https://github.com/4DNucleome/PartSeg/pull/1192))
35
- - Merge all channel-specific attributes of the Image class ([#1191](https://github.com/4DNucleome/PartSeg/pull/1191))
36
24
 
37
25
  ### 📚 Documentation
38
26
 
39
27
  - Change homepage URL ([#1139](https://github.com/4DNucleome/PartSeg/pull/1139))
40
28
  - Add link for download macOS arm bundle ([#1140](https://github.com/4DNucleome/PartSeg/pull/1140))
41
29
  - Add changelog for 0.15.4 release
42
- - Update changelog ([#1176](https://github.com/4DNucleome/PartSeg/pull/1176))
43
30
 
44
31
  ### 🧪 Testing
45
32
 
46
33
  - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `sympy` ([#1128](https://github.com/4DNucleome/PartSeg/pull/1128))
47
34
  - \[Automatic\] Constraints upgrades: `mahotas`, `numpy`, `sentry-sdk`, `sympy` ([#1145](https://github.com/4DNucleome/PartSeg/pull/1145))
48
35
  - \[Automatic\] Constraints upgrades: `numpy`, `tifffile` ([#1163](https://github.com/4DNucleome/PartSeg/pull/1163))
49
- - \[Automatic\] Constraints upgrades: `napari`, `sentry-sdk`, `tifffile` ([#1169](https://github.com/4DNucleome/PartSeg/pull/1169))
50
- - \[Automatic\] Constraints upgrades: `magicgui`, `sentry-sdk` ([#1172](https://github.com/4DNucleome/PartSeg/pull/1172))
51
- - \[Automatic\] Constraints upgrades: `sympy`, `tifffile` ([#1177](https://github.com/4DNucleome/PartSeg/pull/1177))
52
- - \[Automatic\] Constraints upgrades: `imageio`, `napari`, `numpy` ([#1180](https://github.com/4DNucleome/PartSeg/pull/1180))
53
- - Constraints upgrades: `sentry-sdk` and fix tests ([#1182](https://github.com/4DNucleome/PartSeg/pull/1182))
54
- - `napari==0.5.3` related fixes, Constraints upgrades: `imageio`, `ipython`, `numpy`, `qtconsole`, `scipy`, `simpleitk`, `tifffile` ([#1183](https://github.com/4DNucleome/PartSeg/pull/1183))
55
- - \[Automatic\] Constraints upgrades: `numpy`, `pydantic` ([#1188](https://github.com/4DNucleome/PartSeg/pull/1188))
56
- - \[Automatic\] Constraints upgrades: `imagecodecs`, `pandas`, `pydantic`, `sentry-sdk`, `sympy`, `tifffile` ([#1190](https://github.com/4DNucleome/PartSeg/pull/1190))
57
36
 
58
37
  ### ⚙️ Miscellaneous Tasks
59
38
 
@@ -66,17 +45,6 @@ All notable changes to this project will be documented in this file.
66
45
  - Fix tests for napari from repository ([#1148](https://github.com/4DNucleome/PartSeg/pull/1148))
67
46
  - Use python 3.11 to determine updated packages in PR description ([#1160](https://github.com/4DNucleome/PartSeg/pull/1160))
68
47
  - \[pre-commit.ci\] pre-commit autoupdate ([#1164](https://github.com/4DNucleome/PartSeg/pull/1164))
69
- - \[pre-commit.ci\] pre-commit autoupdate ([#1170](https://github.com/4DNucleome/PartSeg/pull/1170))
70
- - Disable thumbnail generation in napari layer as it is fragile and not used ([#1171](https://github.com/4DNucleome/PartSeg/pull/1171))
71
- - \[pre-commit.ci\] pre-commit autoupdate ([#1173](https://github.com/4DNucleome/PartSeg/pull/1173))
72
- - \[pre-commit.ci\] pre-commit autoupdate ([#1178](https://github.com/4DNucleome/PartSeg/pull/1178))
73
- - Fix call of logger to properly pass arguments to messages ([#1179](https://github.com/4DNucleome/PartSeg/pull/1179))
74
- - Fix coverage files upload by enable hidden files upload ([#1186](https://github.com/4DNucleome/PartSeg/pull/1186))
75
- - \[pre-commit.ci\] pre-commit autoupdate ([#1184](https://github.com/4DNucleome/PartSeg/pull/1184))
76
- - Use PyQt6 in pre-tests ([#1196](https://github.com/4DNucleome/PartSeg/pull/1196))
77
- - Add missed code from #1191 ([#1197](https://github.com/4DNucleome/PartSeg/pull/1197))
78
- - \[pre-commit.ci\] pre-commit autoupdate ([#1189](https://github.com/4DNucleome/PartSeg/pull/1189))
79
- - Auto add "skip check PR title" label in update dependencies PR ([#1199](https://github.com/4DNucleome/PartSeg/pull/1199))
80
48
 
81
49
  ### Build
82
50
 
@@ -24,7 +24,7 @@ def my_excepthook(type_, value, trace_back):
24
24
  # log the exception here
25
25
  if state_store.show_error_dialog and not isinstance(value, KeyboardInterrupt):
26
26
  if state_store.auto_report or state_store.always_report:
27
- with sentry_sdk.new_scope() as scope:
27
+ with sentry_sdk.push_scope() as scope:
28
28
  scope.set_tag("auto_report", "true")
29
29
  scope.set_tag("main_thread", QCoreApplication.instance().thread() == QThread.currentThread())
30
30
  sentry_sdk.capture_exception(value)
@@ -48,9 +48,7 @@ class SegmentationThread(QThread):
48
48
  """the calculation are done here"""
49
49
  if self.algorithm.image is None:
50
50
  # assertion for running algorithm without image
51
- logging.error(
52
- "No image in class %(cls_name)", extra={"cls_name": self.algorithm.__class__}, stack_info=True
53
- )
51
+ logging.error("No image in class {cls_name}", extra={"cls_name": self.algorithm.__class__})
54
52
  return
55
53
  try:
56
54
  segment_data = self.algorithm.calculation_run_wrap(self.send_info)
@@ -67,7 +67,7 @@ class DevelopTab(QWidget):
67
67
 
68
68
  def reload_algorithm_action(self):
69
69
  """Function for reload plugins and algorithms"""
70
- msg = "Reloading %(mod_name)"
70
+ msg = "Reloading {mod_name}"
71
71
  for val in register.reload_module_list:
72
72
  logging.info(msg, extra={"mod_name": val.__name__})
73
73
  importlib.reload(val)
@@ -275,8 +275,4 @@ class ImageMetadata(QWidget):
275
275
 
276
276
  def update_metadata(self):
277
277
  self._dict_viewer.set_data(self.settings.image.metadata)
278
- text = ", ".join(
279
- f"{name}: {color}"
280
- for name, color in zip(self.settings.image.channel_names, self.settings.image.get_colors())
281
- )
282
- self.channel_info.setText(f"Channels with colors: {text}")
278
+ self.channel_info.setText(f"Channels: {self.settings.image.channel_names}")
@@ -599,12 +599,7 @@ class SubAlgorithmWidget(QWidget):
599
599
 
600
600
  def paintEvent(self, event: QPaintEvent):
601
601
  name = self.choose.currentText()
602
- if (
603
- name in self.widgets_dict
604
- and self.widgets_dict[name].has_elements()
605
- and event.rect().top() == 0
606
- and event.rect().left() == 0
607
- ):
602
+ if self.widgets_dict[name].has_elements() and event.rect().top() == 0 and event.rect().left() == 0:
608
603
  painter = QPainter(self)
609
604
  painter.drawRect(self.rect() - QMargins(1, -1, 1, 1))
610
605
 
@@ -16,7 +16,7 @@ class DictViewer(QWidget):
16
16
  self.layout.addWidget(self.tree)
17
17
  self.setLayout(self.layout)
18
18
  self.tree.setHeaderLabels(["Key", "Value"])
19
- self.set_data(data)
19
+ self.data = data
20
20
 
21
21
  def set_data(self, data: dict | None):
22
22
  if data is None:
@@ -201,7 +201,7 @@ class ErrorDialog(QDialog):
201
201
  """
202
202
  Function with construct final error message and send it using sentry.
203
203
  """
204
- with sentry_sdk.new_scope() as scope:
204
+ with sentry_sdk.push_scope() as scope:
205
205
  text = f"{self.desc.text()}\n\nVersion: {__version__}\n"
206
206
  if len(self.additional_notes) > 0:
207
207
  scope.set_extra("additional_notes", self.additional_notes)
@@ -217,7 +217,7 @@ class ErrorDialog(QDialog):
217
217
 
218
218
  event_id = sentry_sdk.capture_event(event, hint=hint)
219
219
  if event_id is None:
220
- event_id = sentry_sdk.scope.Scope.last_event_id()
220
+ event_id = sentry_sdk.hub.Hub.current.last_event_id()
221
221
 
222
222
  if len(self.additional_info.toPlainText()) > 0:
223
223
  contact_text = self.contact_info.text()
@@ -43,7 +43,6 @@ except ImportError:
43
43
  from napari._qt.widgets.qt_viewer_buttons import QtViewerPushButton as QtViewerPushButton_
44
44
  _napari_ge_4_13 = parse_version(napari.__version__) >= parse_version("0.4.13a1")
45
45
  _napari_ge_4_17 = parse_version(napari.__version__) >= parse_version("0.4.17a1")
46
- _napari_ge_4_19 = parse_version(napari.__version__) >= parse_version("0.4.19")
47
46
  _napari_ge_5 = parse_version(napari.__version__) >= parse_version("0.5.0a1")
48
47
 
49
48
  # if run with numpy<2 on macOS arm64 architecture compiled from pypi wheels
@@ -61,11 +60,6 @@ else:
61
60
  USE_THREADS = True
62
61
 
63
62
 
64
- class _NapariImage(NapariImage):
65
- def _update_thumbnail(self, *_, **__):
66
- """Disable thumbnail update"""
67
-
68
-
69
63
  def get_highlight_colormap():
70
64
  cmap_dict = {0: (0, 0, 0, 0), 1: "white", None: (0, 0, 0, 0)}
71
65
  if _napari_ge_5:
@@ -113,7 +107,7 @@ else:
113
107
  ORDER_DICT = {"xy": [0, 1, 2, 3], "zy": [0, 2, 1, 3], "zx": [0, 3, 1, 2]}
114
108
  NEXT_ORDER = {"xy": "zy", "zy": "zx", "zx": "xy"}
115
109
 
116
- ColorInfo = Dict[Optional[int], Union[str, List[float]]]
110
+ ColorInfo = Dict[int, Union[str, List[float]]]
117
111
 
118
112
 
119
113
  @dataclass
@@ -481,18 +475,15 @@ class ImageView(QWidget):
481
475
  or image_info.roi_count == 0
482
476
  or colors.size == 0
483
477
  ):
484
- return {0: [0, 0, 0, 0], None: [0, 0, 0, 0]}
478
+ return {x: [0, 0, 0, 0] for x in range(image_info.roi_count + 1)}
485
479
 
486
480
  res = {x: colors[(x - 1) % colors.shape[0]] for x in range(1, image_info.roi_count + 1)}
487
481
  res[0] = [0, 0, 0, 0]
488
- res[None] = [0, 0, 0, 0]
489
482
  return res
490
483
 
491
484
  def set_roi_colormap(self, image_info) -> None:
492
- if _napari_ge_4_19:
493
- from napari.utils.colormaps import DirectLabelColormap
494
-
495
- image_info.roi.colormap = DirectLabelColormap(color_dict=self.get_roi_view_parameters(image_info))
485
+ if _napari_ge_5:
486
+ image_info.roi.colormap = self.get_roi_view_parameters(image_info)
496
487
  return
497
488
  if _napari_ge_4_13:
498
489
  image_info.roi.color = self.get_roi_view_parameters(image_info)
@@ -595,10 +586,8 @@ class ImageView(QWidget):
595
586
  else:
596
587
  image_info.mask.data = mask_marker
597
588
  image_info.mask.metadata["valid"] = True
598
- if _napari_ge_4_19:
599
- from napari.utils.colormaps import DirectLabelColormap
600
-
601
- image_info.mask.colormap = DirectLabelColormap(color_dict=self.mask_color())
589
+ if _napari_ge_5:
590
+ image_info.mask.colormap = self.mask_color()
602
591
  else:
603
592
  image_info.mask.color = self.mask_color()
604
593
  image_info.mask.opacity = self.mask_opacity()
@@ -619,10 +608,8 @@ class ImageView(QWidget):
619
608
  for image_info in self.image_info.values():
620
609
  if image_info.mask is not None:
621
610
  image_info.mask.opacity = opacity
622
- if _napari_ge_4_19:
623
- from napari.utils.colormaps import DirectLabelColormap
624
-
625
- image_info.mask.colormap = DirectLabelColormap(color_dict=colormap)
611
+ if _napari_ge_5:
612
+ image_info.mask.colormap = colormap
626
613
  else:
627
614
  image_info.mask.color = colormap
628
615
 
@@ -1086,7 +1073,7 @@ def _prepare_layers(image: Image, param: ImageParameters, replace: bool) -> Tupl
1086
1073
  blending = "additive" if i != 0 else "translucent"
1087
1074
  data = image.get_channel(i)
1088
1075
 
1089
- layer = _NapariImage(
1076
+ layer = NapariImage(
1090
1077
  data,
1091
1078
  colormap=param.colormaps[i],
1092
1079
  visible=param.visibility[i],
@@ -46,18 +46,15 @@ def _test_imports(): # pragma: no cover
46
46
  w1 = AnalysisMain("test")
47
47
  w2 = MaskMain("test")
48
48
  w3 = MainWindow("test")
49
- v = napari.Viewer()
50
- console = QtConsole(v)
49
+ console = QtConsole(napari.Viewer())
51
50
  label = LabelChoose(w1.settings)
52
51
  label.refresh()
53
- v.close()
54
- del label # skipcq: PTC-W0043
55
- del w1 # skipcq: PTC-W0043
56
- del w2 # skipcq: PTC-W0043
57
- del w3 # skipcq: PTC-W0043
58
- del v # skipcq: PTC-W0043
59
- del app # skipcq: PTC-W0043
60
- del console # skipcq: PTC-W0043
52
+ del label
53
+ del w1
54
+ del w2
55
+ del w3
56
+ del app
57
+ del console
61
58
  print("end_test_import")
62
59
 
63
60
 
@@ -145,8 +142,8 @@ def main(): # pragma: no cover # noqa: PLR0915
145
142
  check_survey.start()
146
143
  wind.show()
147
144
  rc = my_app.exec_()
148
- del wind # skipcq: PTC-W0043
149
- del my_app # skipcq: PTC-W0043
145
+ del wind # skipcq: PTC-W0043`
146
+ del my_app # skipcq: PTC-W0043`
150
147
  sys.exit(rc)
151
148
 
152
149
 
@@ -74,9 +74,6 @@ contributions:
74
74
  - id: PartSeg.CopyLabels
75
75
  title: Create Copy Labels
76
76
  python_name: PartSeg.plugins.napari_widgets:CopyLabelsWidget
77
- - id: PartSeg.Metadata
78
- title: View Layer Metadata
79
- python_name: PartSeg.plugins.napari_widgets:LayerMetadata
80
77
  readers:
81
78
  - command: PartSeg.load_roi_project
82
79
  filename_patterns:
@@ -160,5 +157,3 @@ contributions:
160
157
  display_name: Threshold
161
158
  - command: PartSeg.Watershed
162
159
  display_name: Watershed
163
- - command: PartSeg.Metadata
164
- display_name: Layer Metadata
@@ -1,11 +1,9 @@
1
1
  import contextlib
2
2
  import importlib
3
- import logging
4
3
  import os
5
4
  import pkgutil
6
5
  import sys
7
6
  import typing
8
- from pathlib import Path
9
7
 
10
8
  import PartSegCore.plugins
11
9
 
@@ -19,12 +17,6 @@ def register_napari_plugins(): # pragma: no cover
19
17
  npe2.PluginManager.instance().register(
20
18
  os.path.join(os.path.dirname(os.path.dirname(PartSeg.__file__)), "napari.yaml")
21
19
  )
22
- base_path = Path(__file__).parent.parent.parent / "plugins"
23
- for el in base_path.glob("*/napari.yaml"):
24
- try:
25
- npe2.PluginManager.instance().register(str(el))
26
- except Exception: # noqa: PERF203
27
- logging.exception("Failed to register %s", el)
28
20
 
29
21
 
30
22
  def get_plugins():
@@ -12,7 +12,6 @@ from PartSeg.plugins.napari_widgets.colormap_control import ImageColormap
12
12
  from PartSeg.plugins.napari_widgets.copy_labels import CopyLabelsWidget
13
13
  from PartSeg.plugins.napari_widgets.lables_control import LabelSelector
14
14
  from PartSeg.plugins.napari_widgets.mask_create_widget import MaskCreate
15
- from PartSeg.plugins.napari_widgets.metadata_viewer import LayerMetadata
16
15
  from PartSeg.plugins.napari_widgets.roi_extraction_algorithms import ROIAnalysisExtraction, ROIMaskExtraction
17
16
  from PartSeg.plugins.napari_widgets.search_label_widget import SearchLabel
18
17
 
@@ -28,7 +27,6 @@ __all__ = (
28
27
  "Watershed",
29
28
  "ImageColormap",
30
29
  "LabelSelector",
31
- "LayerMetadata",
32
30
  "MaskCreate",
33
31
  "ROIAnalysisExtraction",
34
32
  "ROIMaskExtraction",
@@ -11,7 +11,6 @@ from PartSeg.common_gui.label_create import LabelChoose, LabelEditor, LabelShow
11
11
  from PartSeg.plugins.napari_widgets._settings import get_settings
12
12
 
13
13
  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
14
 
16
15
 
17
16
  class NapariLabelShow(LabelShow):
@@ -42,10 +41,8 @@ class NapariLabelShow(LabelShow):
42
41
  max_val = layer.data.max()
43
42
  labels = {i + 1: [x / 255 for x in self.label[i % len(self.label)]] for i in range(max_val + 5)}
44
43
  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)
44
+ if NAPARI_GE_5_0:
45
+ layer.colormap = labels
49
46
  else:
50
47
  layer.color = labels
51
48
 
@@ -106,7 +106,6 @@ class SearchLabel(Container):
106
106
  u_bound = upper_bound[-2:][::-1]
107
107
  with warnings.catch_warnings():
108
108
  warnings.filterwarnings("ignore", "Public access to Window.qt_viewer")
109
- warnings.filterwarnings("ignore", "Access to QtViewer.view is deprecated")
110
109
  rect = Rect(self.napari_viewer.window.qt_viewer.view.camera.get_state()["rect"])
111
110
  if rect.contains(*l_bound) and rect.contains(*u_bound):
112
111
  return
@@ -124,7 +123,6 @@ class SearchLabel(Container):
124
123
  rect.pos = pos
125
124
  with warnings.catch_warnings():
126
125
  warnings.filterwarnings("ignore", "Public access to Window.qt_viewer")
127
- warnings.filterwarnings("ignore", "Access to QtViewer.view is deprecated")
128
126
  self.napari_viewer.window.qt_viewer.view.camera.set_state({"rect": rect})
129
127
 
130
128
  @staticmethod
@@ -148,7 +146,6 @@ class SearchLabel(Container):
148
146
  rect = Rect(pos=(lower_bound - frame)[-2:][::-1], size=(diff + 2 * frame)[-2:][::-1])
149
147
  with warnings.catch_warnings():
150
148
  warnings.filterwarnings("ignore", "Public access to Window.qt_viewer")
151
- warnings.filterwarnings("ignore", "Access to QtViewer.view is deprecated")
152
149
  self.napari_viewer.window.qt_viewer.view.camera.set_state({"rect": rect})
153
150
  self._update_point(lower_bound, upper_bound)
154
151
 
@@ -84,7 +84,7 @@ class SimpleMeasurement(Container):
84
84
  )
85
85
  return
86
86
  data_scale = data_layer.scale[-3:] / UNIT_SCALE[self.scale_units_select.get_value().value]
87
- image = Image(data_layer.data, spacing=data_scale, axes_order="TZYX"[-data_ndim:])
87
+ image = Image(data_layer.data, data_scale, axes_order="TZYX"[-data_ndim:])
88
88
  worker = _prepare_data(profile, image, self.labels_choice.value.data)
89
89
  worker.returned.connect(self._calculate_next)
90
90
  worker.errored.connect(self._finished)