muvis-align 0.7.1__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 (349) hide show
  1. muvis_align-0.7.1/.claude/skills/napari-ui-capture/SKILL.md +14 -0
  2. muvis_align-0.7.1/.claude-plugin/marketplace.json +14 -0
  3. muvis_align-0.7.1/.claude-plugin/plugin.json +9 -0
  4. muvis_align-0.7.1/.copier-answers.yml +18 -0
  5. muvis_align-0.7.1/.github/ISSUE_TEMPLATE/bug_report.yml +87 -0
  6. muvis_align-0.7.1/.github/ISSUE_TEMPLATE/documentation.md +11 -0
  7. muvis_align-0.7.1/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  8. muvis_align-0.7.1/.github/ISSUE_TEMPLATE/task.md +11 -0
  9. muvis_align-0.7.1/.github/PULL_REQUEST_TEMPLATE.md +12 -0
  10. muvis_align-0.7.1/.github/dependabot.yml +33 -0
  11. muvis_align-0.7.1/.github/workflows/test_and_deploy.yml +117 -0
  12. muvis_align-0.7.1/.gitignore +96 -0
  13. muvis_align-0.7.1/.napari-hub/DESCRIPTION.md +9 -0
  14. muvis_align-0.7.1/.napari-hub/config.yml +9 -0
  15. muvis_align-0.7.1/.pre-commit-config.yaml +27 -0
  16. muvis_align-0.7.1/AGENTS.md +41 -0
  17. muvis_align-0.7.1/CLAUDE.md +1 -0
  18. muvis_align-0.7.1/Dockerfile +149 -0
  19. muvis_align-0.7.1/LICENSE.md +7 -0
  20. muvis_align-0.7.1/MANIFEST.in +5 -0
  21. muvis_align-0.7.1/PKG-INFO +174 -0
  22. muvis_align-0.7.1/README.md +120 -0
  23. muvis_align-0.7.1/apptainer-check.sh +83 -0
  24. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/scale0/image/c/0/0/0/0/0 +0 -0
  25. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/scale0/image/zarr.json +55 -0
  26. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/scale0/zarr.json +13 -0
  27. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/scale1/image/c/0/0/0/0/0 +0 -0
  28. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/scale1/image/zarr.json +55 -0
  29. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/scale1/zarr.json +13 -0
  30. muvis_align-0.7.1/data/3d/RL00--X00--Y00--C00.ome.zarr/zarr.json +244 -0
  31. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/scale0/image/c/0/0/0/0/0 +0 -0
  32. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/scale0/image/zarr.json +55 -0
  33. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/scale0/zarr.json +13 -0
  34. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/scale1/image/c/0/0/0/0/0 +0 -0
  35. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/scale1/image/zarr.json +55 -0
  36. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/scale1/zarr.json +13 -0
  37. muvis_align-0.7.1/data/3d/RL00--X00--Y01--C00.ome.zarr/zarr.json +244 -0
  38. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/scale0/image/c/0/0/0/0/0 +0 -0
  39. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/scale0/image/zarr.json +55 -0
  40. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/scale0/zarr.json +13 -0
  41. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/scale1/image/c/0/0/0/0/0 +0 -0
  42. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/scale1/image/zarr.json +55 -0
  43. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/scale1/zarr.json +13 -0
  44. muvis_align-0.7.1/data/3d/RL00--X01--Y00--C00.ome.zarr/zarr.json +244 -0
  45. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/scale0/image/c/0/0/0/0/0 +0 -0
  46. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/scale0/image/zarr.json +55 -0
  47. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/scale0/zarr.json +13 -0
  48. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/scale1/image/c/0/0/0/0/0 +0 -0
  49. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/scale1/image/zarr.json +55 -0
  50. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/scale1/zarr.json +13 -0
  51. muvis_align-0.7.1/data/3d/RL00--X01--Y01--C00.ome.zarr/zarr.json +244 -0
  52. muvis_align-0.7.1/data/S000/000_000_0.tiff +0 -0
  53. muvis_align-0.7.1/data/S000/000_001_0.tiff +0 -0
  54. muvis_align-0.7.1/data/S000/001_000_0.tiff +0 -0
  55. muvis_align-0.7.1/data/S000/001_001_0.tiff +0 -0
  56. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/0/c/0/0/0/0/0 +0 -0
  57. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/0/zarr.json +48 -0
  58. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/1/c/0/0/0/0/0 +0 -0
  59. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/1/zarr.json +48 -0
  60. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/2/c/0/0/0/0/0 +0 -0
  61. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/2/zarr.json +48 -0
  62. muvis_align-0.7.1/data/S000/S000_000_000.ome.zarr/zarr.json +131 -0
  63. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/0/c/0/0/0/0/0 +0 -0
  64. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/0/zarr.json +48 -0
  65. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/1/c/0/0/0/0/0 +0 -0
  66. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/1/zarr.json +48 -0
  67. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/2/c/0/0/0/0/0 +0 -0
  68. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/2/zarr.json +48 -0
  69. muvis_align-0.7.1/data/S000/S000_000_001.ome.zarr/zarr.json +131 -0
  70. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/0/c/0/0/0/0/0 +0 -0
  71. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/0/zarr.json +48 -0
  72. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/1/c/0/0/0/0/0 +0 -0
  73. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/1/zarr.json +48 -0
  74. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/2/c/0/0/0/0/0 +0 -0
  75. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/2/zarr.json +48 -0
  76. muvis_align-0.7.1/data/S000/S000_001_000.ome.zarr/zarr.json +131 -0
  77. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/0/c/0/0/0/0/0 +0 -0
  78. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/0/zarr.json +48 -0
  79. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/1/c/0/0/0/0/0 +0 -0
  80. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/1/zarr.json +48 -0
  81. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/2/c/0/0/0/0/0 +0 -0
  82. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/2/zarr.json +48 -0
  83. muvis_align-0.7.1/data/S000/S000_001_001.ome.zarr/zarr.json +131 -0
  84. muvis_align-0.7.1/data/S001/000_000_0.tiff +0 -0
  85. muvis_align-0.7.1/data/S001/000_001_0.tiff +0 -0
  86. muvis_align-0.7.1/data/S001/001_000_0.tiff +0 -0
  87. muvis_align-0.7.1/data/S001/001_001_0.tiff +0 -0
  88. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/0/c/0/0/0/0/0 +0 -0
  89. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/0/zarr.json +48 -0
  90. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/1/c/0/0/0/0/0 +0 -0
  91. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/1/zarr.json +48 -0
  92. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/2/c/0/0/0/0/0 +0 -0
  93. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/2/zarr.json +48 -0
  94. muvis_align-0.7.1/data/S001/S001_000_000.ome.zarr/zarr.json +131 -0
  95. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/0/c/0/0/0/0/0 +0 -0
  96. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/0/zarr.json +48 -0
  97. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/1/c/0/0/0/0/0 +0 -0
  98. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/1/zarr.json +48 -0
  99. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/2/c/0/0/0/0/0 +0 -0
  100. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/2/zarr.json +48 -0
  101. muvis_align-0.7.1/data/S001/S001_000_001.ome.zarr/zarr.json +131 -0
  102. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/0/c/0/0/0/0/0 +0 -0
  103. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/0/zarr.json +48 -0
  104. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/1/c/0/0/0/0/0 +0 -0
  105. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/1/zarr.json +48 -0
  106. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/2/c/0/0/0/0/0 +0 -0
  107. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/2/zarr.json +48 -0
  108. muvis_align-0.7.1/data/S001/S001_001_000.ome.zarr/zarr.json +131 -0
  109. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/0/c/0/0/0/0/0 +0 -0
  110. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/0/zarr.json +48 -0
  111. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/1/c/0/0/0/0/0 +0 -0
  112. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/1/zarr.json +48 -0
  113. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/2/c/0/0/0/0/0 +0 -0
  114. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/2/zarr.json +48 -0
  115. muvis_align-0.7.1/data/S001/S001_001_001.ome.zarr/zarr.json +131 -0
  116. muvis_align-0.7.1/data/aligned_stitched_mappings1.json +3402 -0
  117. muvis_align-0.7.1/data/aligned_stitched_mappings2.json +5202 -0
  118. muvis_align-0.7.1/debug_napari.py +13 -0
  119. muvis_align-0.7.1/docker-build-push.sh +42 -0
  120. muvis_align-0.7.1/docs/images/EMPAIR12193overlay.png +0 -0
  121. muvis_align-0.7.1/docs/images/FAIR.png +0 -0
  122. muvis_align-0.7.1/docs/images/chunked.png +0 -0
  123. muvis_align-0.7.1/docs/images/muvis-align-logo.png +0 -0
  124. muvis_align-0.7.1/docs/images/muvis-align-logo256.png +0 -0
  125. muvis_align-0.7.1/docs/images/muvis-align-logo32.png +0 -0
  126. muvis_align-0.7.1/docs/images/muvis-align-modify-pair-reg.png +0 -0
  127. muvis_align-0.7.1/docs/images/napari/fused.png +0 -0
  128. muvis_align-0.7.1/docs/images/napari/fusion.png +0 -0
  129. muvis_align-0.7.1/docs/images/napari/input_output.png +0 -0
  130. muvis_align-0.7.1/docs/images/napari/pair_good.png +0 -0
  131. muvis_align-0.7.1/docs/images/napari/pair_poor.png +0 -0
  132. muvis_align-0.7.1/docs/images/napari/pre_processing.png +0 -0
  133. muvis_align-0.7.1/docs/images/napari/project.png +0 -0
  134. muvis_align-0.7.1/docs/images/napari/registered.png +0 -0
  135. muvis_align-0.7.1/docs/images/napari/registration.png +0 -0
  136. muvis_align-0.7.1/docs/images/napari/window.png +0 -0
  137. muvis_align-0.7.1/docs/images/ram.png +0 -0
  138. muvis_align-0.7.1/docs/index.md +165 -0
  139. muvis_align-0.7.1/docs/napari_guide.md +253 -0
  140. muvis_align-0.7.1/docs/notebooks.md +501 -0
  141. muvis_align-0.7.1/docs/pipeline.md +444 -0
  142. muvis_align-0.7.1/docs/poster.md +78 -0
  143. muvis_align-0.7.1/docs/pre_poster.md +142 -0
  144. muvis_align-0.7.1/docs/references.md +2 -0
  145. muvis_align-0.7.1/docs/requirements.txt +3 -0
  146. muvis_align-0.7.1/docs/technical.md +715 -0
  147. muvis_align-0.7.1/environment.yml +20 -0
  148. muvis_align-0.7.1/environment06.yml +23 -0
  149. muvis_align-0.7.1/environment_napari06.yml +13 -0
  150. muvis_align-0.7.1/mkdocs.yml +65 -0
  151. muvis_align-0.7.1/multiview-stitcher.yml +21 -0
  152. muvis_align-0.7.1/notebooks/3d_view.ipynb +114 -0
  153. muvis_align-0.7.1/notebooks/feature_matching.ipynb +134 -0
  154. muvis_align-0.7.1/notebooks/feature_matching_metrics.ipynb +139 -0
  155. muvis_align-0.7.1/notebooks/feature_matching_overlay.ipynb +158 -0
  156. muvis_align-0.7.1/notebooks/pipeline.ipynb +226 -0
  157. muvis_align-0.7.1/notebooks/stitching2d.ipynb +180 -0
  158. muvis_align-0.7.1/notebooks/stitching2d_metrics.ipynb +242 -0
  159. muvis_align-0.7.1/notebooks/stitching2d_split_registration.ipynb +233 -0
  160. muvis_align-0.7.1/notebooks/tile_staging_napari.ipynb +133 -0
  161. muvis_align-0.7.1/notes/coverage_plan_codex.md +101 -0
  162. muvis_align-0.7.1/notes/coverage_plan_copilot_cluade.md +80 -0
  163. muvis_align-0.7.1/notes/coverage_plan_copilot_gpt.md +40 -0
  164. muvis_align-0.7.1/notes/metrics.md +13 -0
  165. muvis_align-0.7.1/notes/multiview_stitcher.md +348 -0
  166. muvis_align-0.7.1/notes/parameters.md +29 -0
  167. muvis_align-0.7.1/notes/todo_known_issues.md +555 -0
  168. muvis_align-0.7.1/notes/ui_design.md +52 -0
  169. muvis_align-0.7.1/notes/user_access.md +27 -0
  170. muvis_align-0.7.1/pyproject.toml +161 -0
  171. muvis_align-0.7.1/requirements.txt +25 -0
  172. muvis_align-0.7.1/resources/params_EM04652_02_slice017.yml +26 -0
  173. muvis_align-0.7.1/resources/params_EM04652_02_slice017_compose.yml +36 -0
  174. muvis_align-0.7.1/resources/params_EM04652_02_slice017_ov.yml +40 -0
  175. muvis_align-0.7.1/resources/params_EM04654_slice011.yml +46 -0
  176. muvis_align-0.7.1/resources/params_EM04768_01_Sub_04_Cell_1_10nm_10us.yml +263 -0
  177. muvis_align-0.7.1/resources/params_EM04768_01_Sub_04_Cell_1_10nm_2us.yml +247 -0
  178. muvis_align-0.7.1/resources/params_EM04768_01_Sub_04_Cell_1_20nm_5us.yml +263 -0
  179. muvis_align-0.7.1/resources/params_EM04788_02_Sub_02_10nm.yml +322 -0
  180. muvis_align-0.7.1/resources/params_EM04788_02_Sub_02_20nm.yml +322 -0
  181. muvis_align-0.7.1/resources/params_EM04788_03_Sub_01_10nm.yml +367 -0
  182. muvis_align-0.7.1/resources/params_EM04788_03_Sub_01_20nm.yml +367 -0
  183. muvis_align-0.7.1/resources/params_EM04788_extra.yml +82 -0
  184. muvis_align-0.7.1/resources/params_EM04788_local.yml +22 -0
  185. muvis_align-0.7.1/resources/params_EMPIAR12193.yml +67 -0
  186. muvis_align-0.7.1/resources/params_EMPIAR12193_2stage.yml +45 -0
  187. muvis_align-0.7.1/resources/params_EMPIAR12193_test.yml +36 -0
  188. muvis_align-0.7.1/resources/params_align_stack.yml +30 -0
  189. muvis_align-0.7.1/resources/params_ciqtek.yml +31 -0
  190. muvis_align-0.7.1/resources/params_multichannel.yml +64 -0
  191. muvis_align-0.7.1/resources/params_multichannel_local.yml +28 -0
  192. muvis_align-0.7.1/resources/params_multichannel_local2.yml +25 -0
  193. muvis_align-0.7.1/resources/params_multichannel_small.yml +33 -0
  194. muvis_align-0.7.1/resources/params_single_tile.yml +27 -0
  195. muvis_align-0.7.1/resources/params_stack_test.yml +23 -0
  196. muvis_align-0.7.1/resources/params_stitch_EM.yml +27 -0
  197. muvis_align-0.7.1/resources/params_stitching_transition.yml +31 -0
  198. muvis_align-0.7.1/resources/params_test.yml +32 -0
  199. muvis_align-0.7.1/resources/params_test_2d.yml +23 -0
  200. muvis_align-0.7.1/resources/params_test_2d2.yml +26 -0
  201. muvis_align-0.7.1/resources/params_test_2d_overlay.yml +25 -0
  202. muvis_align-0.7.1/resources/params_test_3d.yml +25 -0
  203. muvis_align-0.7.1/resources/params_test_convert.yml +25 -0
  204. muvis_align-0.7.1/resources/params_test_overlay.yml +22 -0
  205. muvis_align-0.7.1/resources/params_test_tiff.yml +23 -0
  206. muvis_align-0.7.1/run.py +21 -0
  207. muvis_align-0.7.1/run_pipeline.sh +38 -0
  208. muvis_align-0.7.1/setup.cfg +4 -0
  209. muvis_align-0.7.1/skills/muvis-align/SKILL.md +122 -0
  210. muvis_align-0.7.1/skills/muvis-align/examples/match_sets.yml +18 -0
  211. muvis_align-0.7.1/skills/muvis-align/examples/merge_no_registration.yml +11 -0
  212. muvis_align-0.7.1/skills/muvis-align/examples/stack.yml +14 -0
  213. muvis_align-0.7.1/skills/muvis-align/examples/stitch_2d.yml +21 -0
  214. muvis_align-0.7.1/skills/muvis-align/references/python-api.md +61 -0
  215. muvis_align-0.7.1/src/muvis_align/GlobalOptProgress.py +169 -0
  216. muvis_align-0.7.1/src/muvis_align/MVSRegistration.py +2594 -0
  217. muvis_align-0.7.1/src/muvis_align/Pipeline.py +141 -0
  218. muvis_align-0.7.1/src/muvis_align/Timer.py +59 -0
  219. muvis_align-0.7.1/src/muvis_align/__init__.py +11 -0
  220. muvis_align-0.7.1/src/muvis_align/_sample_data.py +98 -0
  221. muvis_align-0.7.1/src/muvis_align/_version.py +24 -0
  222. muvis_align-0.7.1/src/muvis_align/_widget.py +128 -0
  223. muvis_align-0.7.1/src/muvis_align/constants.py +191 -0
  224. muvis_align-0.7.1/src/muvis_align/file/project_yaml.py +41 -0
  225. muvis_align-0.7.1/src/muvis_align/file/resources.py +15 -0
  226. muvis_align-0.7.1/src/muvis_align/file/transforms.py +37 -0
  227. muvis_align-0.7.1/src/muvis_align/fusion_blocks.py +631 -0
  228. muvis_align-0.7.1/src/muvis_align/fusion_methods/FusionMethod.py +7 -0
  229. muvis_align-0.7.1/src/muvis_align/fusion_methods/FusionMethodAdditive.py +20 -0
  230. muvis_align-0.7.1/src/muvis_align/fusion_methods/FusionMethodAverage.py +25 -0
  231. muvis_align-0.7.1/src/muvis_align/fusion_methods/FusionMethodExclusive.py +25 -0
  232. muvis_align-0.7.1/src/muvis_align/image/ImageSource.py +340 -0
  233. muvis_align-0.7.1/src/muvis_align/image/TiffImageSource.py +85 -0
  234. muvis_align-0.7.1/src/muvis_align/image/Video.py +31 -0
  235. muvis_align-0.7.1/src/muvis_align/image/ZarrImageSource.py +111 -0
  236. muvis_align-0.7.1/src/muvis_align/image/color_conversion.py +23 -0
  237. muvis_align-0.7.1/src/muvis_align/image/flatfield.py +99 -0
  238. muvis_align-0.7.1/src/muvis_align/image/lazy_overview.py +389 -0
  239. muvis_align-0.7.1/src/muvis_align/image/ome_helper.py +56 -0
  240. muvis_align-0.7.1/src/muvis_align/image/ome_tiff_helper.py +391 -0
  241. muvis_align-0.7.1/src/muvis_align/image/ome_zarr_helper.py +323 -0
  242. muvis_align-0.7.1/src/muvis_align/image/ome_zarr_util.py +173 -0
  243. muvis_align-0.7.1/src/muvis_align/image/reg_util.py +47 -0
  244. muvis_align-0.7.1/src/muvis_align/image/source_helper.py +95 -0
  245. muvis_align-0.7.1/src/muvis_align/image/util.py +2549 -0
  246. muvis_align-0.7.1/src/muvis_align/logging.py +66 -0
  247. muvis_align-0.7.1/src/muvis_align/metrics.py +373 -0
  248. muvis_align-0.7.1/src/muvis_align/muvis-align-logo256.png +0 -0
  249. muvis_align-0.7.1/src/muvis_align/napari.yaml +43 -0
  250. muvis_align-0.7.1/src/muvis_align/registration_methods/RegistrationMethod.py +40 -0
  251. muvis_align-0.7.1/src/muvis_align/registration_methods/RegistrationMethodCPD.py +80 -0
  252. muvis_align-0.7.1/src/muvis_align/registration_methods/RegistrationMethodCvFeatures.py +125 -0
  253. muvis_align-0.7.1/src/muvis_align/registration_methods/RegistrationMethodDummy.py +17 -0
  254. muvis_align-0.7.1/src/muvis_align/registration_methods/RegistrationMethodSkFeatures.py +223 -0
  255. muvis_align-0.7.1/src/muvis_align/robust_resolution.py +179 -0
  256. muvis_align-0.7.1/src/muvis_align/split_registration.py +205 -0
  257. muvis_align-0.7.1/src/muvis_align/ui/Interface.py +2263 -0
  258. muvis_align-0.7.1/src/muvis_align/ui/MagicColorPicker.py +91 -0
  259. muvis_align-0.7.1/src/muvis_align/ui/ModelTable.py +115 -0
  260. muvis_align-0.7.1/src/muvis_align/ui/NapariDaskProgress.py +32 -0
  261. muvis_align-0.7.1/src/muvis_align/ui/NapariMVSProgress.py +113 -0
  262. muvis_align-0.7.1/src/muvis_align/ui/NapariPhaseProgress.py +404 -0
  263. muvis_align-0.7.1/src/muvis_align/ui/ParamWidget.py +84 -0
  264. muvis_align-0.7.1/src/muvis_align/ui/PathList.py +122 -0
  265. muvis_align-0.7.1/src/muvis_align/ui/QtNapariTqdm.py +69 -0
  266. muvis_align-0.7.1/src/muvis_align/ui/__init__.py +0 -0
  267. muvis_align-0.7.1/src/muvis_align/ui/_utils.py +241 -0
  268. muvis_align-0.7.1/src/muvis_align/ui/bilayers_util.py +132 -0
  269. muvis_align-0.7.1/src/muvis_align/ui/create_widgets.py +225 -0
  270. muvis_align-0.7.1/src/muvis_align/ui/project_template.yaml +616 -0
  271. muvis_align-0.7.1/src/muvis_align/util.py +1433 -0
  272. muvis_align-0.7.1/src/muvis_align/zarr_compat.py +69 -0
  273. muvis_align-0.7.1/src/muvis_align.egg-info/PKG-INFO +174 -0
  274. muvis_align-0.7.1/src/muvis_align.egg-info/SOURCES.txt +347 -0
  275. muvis_align-0.7.1/src/muvis_align.egg-info/dependency_links.txt +1 -0
  276. muvis_align-0.7.1/src/muvis_align.egg-info/entry_points.txt +2 -0
  277. muvis_align-0.7.1/src/muvis_align.egg-info/requires.txt +30 -0
  278. muvis_align-0.7.1/src/muvis_align.egg-info/scm_file_list.json +342 -0
  279. muvis_align-0.7.1/src/muvis_align.egg-info/scm_version.json +8 -0
  280. muvis_align-0.7.1/src/muvis_align.egg-info/top_level.txt +1 -0
  281. muvis_align-0.7.1/testing/basic_read_test.py +57 -0
  282. muvis_align-0.7.1/testing/code_unchanged.py +40 -0
  283. muvis_align-0.7.1/testing/colors_test.py +11 -0
  284. muvis_align-0.7.1/testing/convert_to_zarr.py +78 -0
  285. muvis_align-0.7.1/testing/dask_test.py +192 -0
  286. muvis_align-0.7.1/testing/feature_registration.py +65 -0
  287. muvis_align-0.7.1/testing/fix_labels.py +16 -0
  288. muvis_align-0.7.1/testing/fusion_testing.py +68 -0
  289. muvis_align-0.7.1/testing/global_solve_whatif.py +174 -0
  290. muvis_align-0.7.1/testing/local_perf_bench.py +112 -0
  291. muvis_align-0.7.1/testing/log_stats_extraction.py +31 -0
  292. muvis_align-0.7.1/testing/make_single_resolution_zarr.py +47 -0
  293. muvis_align-0.7.1/testing/make_synthetic_project.py +86 -0
  294. muvis_align-0.7.1/testing/mappings_analysis.py +23 -0
  295. muvis_align-0.7.1/testing/metrics_test.py +52 -0
  296. muvis_align-0.7.1/testing/mvs_testing.py +486 -0
  297. muvis_align-0.7.1/testing/napari_test.py +144 -0
  298. muvis_align-0.7.1/testing/napari_ui_capture.py +224 -0
  299. muvis_align-0.7.1/testing/neuroglancer_test.py +6 -0
  300. muvis_align-0.7.1/testing/process_memory_test.py +21 -0
  301. muvis_align-0.7.1/testing/register_2d_in_3d.py +175 -0
  302. muvis_align-0.7.1/testing/sim_transforms_testing.py +50 -0
  303. muvis_align-0.7.1/testing/timer_test.py +6 -0
  304. muvis_align-0.7.1/testing/transform_serialisation.py +121 -0
  305. muvis_align-0.7.1/testing/transforms_test.py +46 -0
  306. muvis_align-0.7.1/tests/__init__.py +0 -0
  307. muvis_align-0.7.1/tests/_dummy_tiff.py +181 -0
  308. muvis_align-0.7.1/tests/conftest.py +13 -0
  309. muvis_align-0.7.1/tests/data_builders.py +166 -0
  310. muvis_align-0.7.1/tests/muvis_align_project.yml +47 -0
  311. muvis_align-0.7.1/tests/muvis_align_project2.yml +46 -0
  312. muvis_align-0.7.1/tests/muvis_align_project3d.yml +48 -0
  313. muvis_align-0.7.1/tests/test_available_memory.py +61 -0
  314. muvis_align-0.7.1/tests/test_bilayers_util.py +91 -0
  315. muvis_align-0.7.1/tests/test_create_bounding_boxes.py +414 -0
  316. muvis_align-0.7.1/tests/test_create_widgets.py +155 -0
  317. muvis_align-0.7.1/tests/test_flatfield.py +147 -0
  318. muvis_align-0.7.1/tests/test_fusion_blocks.py +342 -0
  319. muvis_align-0.7.1/tests/test_fusion_methods.py +81 -0
  320. muvis_align-0.7.1/tests/test_image_source.py +245 -0
  321. muvis_align-0.7.1/tests/test_image_util_chunk_sizes.py +197 -0
  322. muvis_align-0.7.1/tests/test_image_util_msim.py +386 -0
  323. muvis_align-0.7.1/tests/test_image_util_transforms.py +196 -0
  324. muvis_align-0.7.1/tests/test_interface.py +2773 -0
  325. muvis_align-0.7.1/tests/test_lazy_overview.py +348 -0
  326. muvis_align-0.7.1/tests/test_lazy_pyramid_levels.py +141 -0
  327. muvis_align-0.7.1/tests/test_metrics.py +201 -0
  328. muvis_align-0.7.1/tests/test_mvs_registration_unit.py +1573 -0
  329. muvis_align-0.7.1/tests/test_pairs_graph.py +136 -0
  330. muvis_align-0.7.1/tests/test_param_widget.py +121 -0
  331. muvis_align-0.7.1/tests/test_preview_size_cap.py +173 -0
  332. muvis_align-0.7.1/tests/test_registration_method_cpd.py +146 -0
  333. muvis_align-0.7.1/tests/test_registration_method_features.py +297 -0
  334. muvis_align-0.7.1/tests/test_robust_resolution.py +130 -0
  335. muvis_align-0.7.1/tests/test_rocrate.py +105 -0
  336. muvis_align-0.7.1/tests/test_run.py +246 -0
  337. muvis_align-0.7.1/tests/test_sample_data.py +122 -0
  338. muvis_align-0.7.1/tests/test_shape_geometry.py +156 -0
  339. muvis_align-0.7.1/tests/test_split_registration.py +175 -0
  340. muvis_align-0.7.1/tests/test_tiff_source_metadata.py +336 -0
  341. muvis_align-0.7.1/tests/test_ui_utils.py +170 -0
  342. muvis_align-0.7.1/tests/test_utils.py +710 -0
  343. muvis_align-0.7.1/tests/test_widget.py +76 -0
  344. muvis_align-0.7.1/tests/test_zarr_compat.py +105 -0
  345. muvis_align-0.7.1/tests/test_zarr_source_metadata.py +146 -0
  346. muvis_align-0.7.1/tox.ini +43 -0
  347. muvis_align-0.7.1/xpra-connect.sh +210 -0
  348. muvis_align-0.7.1/xpra-pull.sh +108 -0
  349. muvis_align-0.7.1/xpra-run.sh +383 -0
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: napari-ui-capture
3
+ description: Drive the muvis-align napari plugin from a script and screenshot it, to see what it actually shows (progress bars, dialogs, layers) without asking the user. Use when checking or debugging a viewer/UI change.
4
+ ---
5
+
6
+ # Running the napari UI without user input
7
+
8
+ - To see what the plugin actually shows (progress bars, dialogs, layers), drive it from a script instead of asking the user: `testing/napari_ui_capture.py <project.yml> <shots_dir> --action open|pre_processing|pair_registration`.
9
+ - It opens the project through `Interface.project_path()` + `input_output_process()`, runs the action from a `QTimer.singleShot` on the Qt thread (as a button click would), and closes the viewer when done.
10
+ - It answers every `QMessageBox` itself (question -> Yes, notices -> Ok, logged as `capture: ...`): a scripted run must never wait on a dialog. Cover any other dialog an action opens before running it. To screenshot a box, `--show-boxes <seconds>` draws it (on top) for that long before closing it with the same answer.
11
+ - Screenshots come from `PIL.ImageGrab` on a background thread, once a second - a Qt grab would stall along with a blocked Qt thread. Filenames carry the elapsed time, the current step and `dialog.isVisible()`.
12
+ - Make short steps long enough to watch with `--slow <Interface-module name>` (e.g. `make_msims_3d`, `Interface._update_view_add_shapes`), which sleeps before calling it.
13
+ - Keep the window fully on screen (the script moves it to 0,0): the activity dialog sits at its bottom right. Qt saying a widget is visible does not mean it is painted - check the image (view it, or compare a cropped region's pixel spread across frames).
14
+ - Test project: `C:/project/slides/muvis_align_project.yml` (328 tiffs, 5 sections).
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "muvis-align",
3
+ "owner": {
4
+ "name": "Joost de Folter"
5
+ },
6
+ "description": "Agent skills for using muvis-align, microscopy image registration and fusion",
7
+ "plugins": [
8
+ {
9
+ "name": "muvis-align",
10
+ "source": "./",
11
+ "description": "Skill for registering and fusing microscopy tiles, stacks and channels with muvis-align (pipeline YAML and Python API)"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "muvis-align",
3
+ "description": "Skill for registering and fusing microscopy tiles, stacks and channels with muvis-align (pipeline YAML and Python API)",
4
+ "author": {"name": "Joost de Folter"},
5
+ "homepage": "https://ccp-volume-em.github.io/muvis-align/",
6
+ "repository": "https://github.com/ccp-volume-em/muvis-align",
7
+ "license": "MIT",
8
+ "skills": ["./skills/muvis-align"]
9
+ }
@@ -0,0 +1,18 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: v2.0.1
3
+ _src_path: https://github.com/napari/napari-plugin-template
4
+ display_name: muvis-align
5
+ email: folterj@gmail.com
6
+ full_name: Joost de Folter
7
+ github_repository_url: provide later
8
+ github_username_or_organization: folterj
9
+ include_reader_plugin: false
10
+ include_sample_data_plugin: false
11
+ include_widget_plugin: true
12
+ include_writer_plugin: false
13
+ install_dependabot: true
14
+ install_precommit: true
15
+ license: MIT
16
+ module_name: muvis_align
17
+ plugin_name: muvis-align
18
+ short_description: Image registration using multiview-stitcher
@@ -0,0 +1,87 @@
1
+ name: "\U0001F41B Bug Report"
2
+ description: Report a bug encountered while using napari-muvis-align
3
+ labels:
4
+ - "bug"
5
+
6
+ body:
7
+ - type: markdown
8
+ attributes:
9
+ value: |
10
+ Thanks for taking the time to report this issue! 🙏🏼
11
+
12
+ Please fill out the sections below to help us reproduce the problem.
13
+
14
+ - type: textarea
15
+ id: bug-report
16
+ attributes:
17
+ label: "\U0001F41B Bug Report"
18
+ description: "Please provide a clear and concise description of the bug."
19
+ placeholder: "What went wrong? What did you expect to happen?"
20
+ validations:
21
+ required: true
22
+
23
+ - type: textarea
24
+ id: steps-to-reproduce
25
+ attributes:
26
+ label: "\U0001F4A1 Steps to Reproduce"
27
+ description: "Please provide a minimal code snippet or list of steps to reproduce the bug."
28
+ placeholder: |
29
+ 1. Go to '...'
30
+ 2. Click on '....'
31
+ 3. Scroll down to '....'
32
+ 4. See error
33
+ validations:
34
+ required: true
35
+
36
+ - type: textarea
37
+ id: expected-behavior
38
+ attributes:
39
+ label: "\U0001F4A1 Expected Behavior"
40
+ description: "Please provide a clear and concise description of what you expected to happen."
41
+ placeholder: "What did you expect to happen?"
42
+
43
+ - type: textarea
44
+ id: environment
45
+ attributes:
46
+ label: "\U0001F30E Environment"
47
+ description: |
48
+ Please provide detailed information regarding your environment. Please paste the output of `napari --info` here or copy the information from the "napari info" dialog in the napari Help menu.
49
+
50
+ Otherwise, please provide information regarding your operating system (OS), Python version, napari version, Qt backend and version, Qt platform, method of installation, and any other relevant information related to your environment.
51
+
52
+
53
+ placeholder: |
54
+ napari: 0.5.0
55
+ Platform: macOS-13.2.1-arm64-arm-64bit
56
+ System: MacOS 13.2.1
57
+ Python: 3.11.4 (main, Aug 7 2023, 20:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]
58
+ Qt: 5.15.10
59
+ PyQt5: 5.15.10
60
+ NumPy: 1.25.1
61
+ SciPy: 1.11.1
62
+ Dask: 2023.7.1
63
+ VisPy: 0.13.0
64
+ magicgui: 0.7.2
65
+ superqt: 0.5.4
66
+ in-n-out: 0.1.8
67
+ app-model: 0.2.0
68
+ npe2: 0.7.2
69
+
70
+ OpenGL:
71
+ - GL version: 2.1 Metal - 83
72
+ - MAX_TEXTURE_SIZE: 16384
73
+
74
+ Screens:
75
+ - screen 1: resolution 1512x982, scale 2.0
76
+
77
+ Settings path:
78
+ - /Users/.../napari/napari_5c6993c40c104085444cfc0c77fa392cb5cb8f56/settings.yaml
79
+ validations:
80
+ required: true
81
+
82
+ - type: textarea
83
+ id: additional-context
84
+ attributes:
85
+ label: "\U0001F4A1 Additional Context"
86
+ description: "Please provide any additional information or context regarding the problem here."
87
+ placeholder: "Add any other context about the problem here."
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "\U0001F4DA Documentation"
3
+ about: Report an issue with napari-muvis-align documentation
4
+ title: ''
5
+ labels: documentation
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## 📚 Documentation
11
+ <!-- A clear and concise description of the documentation that needs to be created/updated -->
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: "\U0001F680 Feature Request"
3
+ about: Submit a proposal/request for a new napari-muvis-align feature
4
+ title: ''
5
+ labels: feature
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## 🚀 Feature
11
+ <!-- A clear and concise description of the feature proposal -->
12
+
13
+ ## Motivation
14
+
15
+ <!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
16
+
17
+ ## Pitch
18
+
19
+ <!-- A clear and concise description of what you want to happen. -->
20
+
21
+ ## Alternatives
22
+
23
+ <!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
24
+
25
+ ## Additional context
26
+
27
+ <!-- Add any other context or screenshots about the feature request here. -->
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "\U0001F9F0 Task"
3
+ about: Maintenance, follow-ups, and other defined to-do items
4
+ title: ''
5
+ labels: task
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ## 🧰 Task
11
+ <!-- A clear and concise description of the task -->
@@ -0,0 +1,12 @@
1
+ # References and relevant issues
2
+ <!-- What relevant resources were used in the creation of this PR?
3
+ If this PR addresses an existing issue on the repo,
4
+ please link to that issue here as "Closes #(issue-number)"
5
+ If this PR depends on another PR/issue (even in another repo),
6
+ please link to it with "Depends on #PR-number" or "Depends on org/repo#PR-number"
7
+ -->
8
+
9
+ # Description
10
+ <!-- What does this pull request (PR) do? Is it a new feature, a bug fix,
11
+ an improvement, or something else? Why is it necessary? If relevant, please add
12
+ a screenshot or a screen capture: "An image is worth a thousand words!" -->
@@ -0,0 +1,33 @@
1
+ # Dependabot configuration
2
+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#enabling-github-dependabot-version-updates
3
+ # https://til.simonwillison.net/github/dependabot-python-setup
4
+
5
+ version: 2
6
+ updates:
7
+ # Monitor pip dependencies
8
+ - package-ecosystem: pip
9
+ directory: "/"
10
+ schedule:
11
+ interval: monthly
12
+ groups:
13
+ python-packages:
14
+ patterns:
15
+ - "*"
16
+ ignore:
17
+ # 7.x hangs the napari notebook's kernel on Windows (Python 3.13+)
18
+ - dependency-name: "ipykernel"
19
+ versions: [">=7"]
20
+
21
+ # Monitor GitHub Actions and propose updates for security and maintenance
22
+ - package-ecosystem: github-actions
23
+ directory: "/"
24
+ schedule:
25
+ interval: monthly
26
+ groups:
27
+ github-actions:
28
+ patterns:
29
+ - "*"
30
+ ignore:
31
+ # @v2 is a floating tag that already tracks the latest 2.x release
32
+ - dependency-name: "hynek/build-and-inspect-python-package"
33
+ update-types: ["version-update:semver-minor", "version-update:semver-patch"]
@@ -0,0 +1,117 @@
1
+ # Tests, builds and inspects the package, deploys the docs, and publishes v* tags to PyPI.
2
+ name: tests
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - main
8
+ - npe2
9
+ tags:
10
+ - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
11
+ pull_request:
12
+ branches:
13
+ - main
14
+ - npe2
15
+ workflow_dispatch:
16
+
17
+ concurrency:
18
+ group: ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ test:
23
+ name: ${{ matrix.platform }} py${{ matrix.python-version }}
24
+ runs-on: ${{ matrix.platform }}
25
+ timeout-minutes: 30
26
+ strategy:
27
+ fail-fast: false
28
+ matrix:
29
+ platform: [ubuntu-latest, windows-latest, macos-latest]
30
+ python-version: ["3.12", "3.13", "3.14"]
31
+
32
+ steps:
33
+ - uses: actions/checkout@v7
34
+ with:
35
+ fetch-depth: 0
36
+
37
+ - name: Setup python
38
+ uses: astral-sh/setup-uv@v7
39
+ with:
40
+ python-version: ${{ matrix.python-version }}
41
+ activate-environment: "true"
42
+ - name: Install Windows OpenGL
43
+ uses: pyvista/setup-headless-display-action@v5.2
44
+ with:
45
+ qt: true
46
+ wm: herbstluftwm
47
+
48
+
49
+ # note: if you need dependencies from conda, considering using
50
+ # setup-miniconda: https://github.com/conda-incubator/setup-miniconda
51
+ # and
52
+ # tox-conda: https://github.com/tox-dev/tox-conda
53
+ # this runs the platform-specific tests declared in tox.ini
54
+ - name: Test with tox
55
+ run: uvx --with tox-gh-actions tox
56
+ env:
57
+ PLATFORM: ${{ matrix.platform }}
58
+
59
+ - name: Coverage
60
+ uses: codecov/codecov-action@v7
61
+ with:
62
+ token: ${{ secrets.CODECOV_TOKEN }}
63
+
64
+ docs:
65
+ name: Build docs
66
+ runs-on: ubuntu-latest
67
+ permissions:
68
+ contents: write
69
+
70
+ steps:
71
+ - uses: actions/checkout@v7
72
+ with:
73
+ fetch-depth: 0
74
+ - name: Setup python
75
+ uses: astral-sh/setup-uv@v7
76
+ with:
77
+ python-version: "3.13"
78
+ activate-environment: "true"
79
+ - name: Install docs requirements
80
+ run: uv pip install -r docs/requirements.txt
81
+ # --strict turns a broken nav entry, a dead internal link or an unresolved
82
+ # mkdocstrings reference into a failure, so the docs cannot drift silently
83
+ - name: Build with mkdocs
84
+ run: mkdocs build --strict
85
+ # GitHub Pages serves the gh-pages branch; deploying from main keeps the site in step with doc fixes
86
+ - name: Deploy to GitHub Pages
87
+ if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
88
+ run: |
89
+ git config user.name "github-actions[bot]"
90
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
91
+ mkdocs gh-deploy --strict --force
92
+
93
+ build-and-inspect-package:
94
+ name: Build & inspect package.
95
+ runs-on: ubuntu-latest
96
+
97
+ steps:
98
+ - uses: actions/checkout@v7
99
+ with:
100
+ fetch-depth: 0
101
+ - uses: hynek/build-and-inspect-python-package@v2
102
+
103
+ deploy:
104
+ name: Publish to PyPI
105
+ needs: [test, build-and-inspect-package]
106
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
107
+ runs-on: ubuntu-latest
108
+ # trusted publishing: PyPI accepts this workflow's OIDC token instead of an API token
109
+ permissions:
110
+ id-token: write
111
+
112
+ steps:
113
+ - uses: actions/download-artifact@v4
114
+ with:
115
+ name: Packages
116
+ path: dist
117
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,96 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ env/
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+
27
+ # PyInstaller
28
+ # Usually these files are written by a python script from a template
29
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
30
+ *.manifest
31
+ *.spec
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *,cover
46
+ .hypothesis/
47
+ .napari_cache
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Django stuff:
54
+ *.log
55
+ local_settings.py
56
+
57
+ # Flask instance folder
58
+ instance/
59
+
60
+ # Sphinx documentation
61
+ docs/_build/
62
+
63
+ # MkDocs documentation
64
+ /site/
65
+
66
+ # PyBuilder
67
+ target/
68
+
69
+ # Pycharm and VSCode
70
+ .idea/
71
+ venv/
72
+ .vscode/
73
+
74
+ # IPython Notebook
75
+ .ipynb_checkpoints
76
+
77
+ # pyenv
78
+ .python-version
79
+
80
+ # OS
81
+ .DS_Store
82
+
83
+ # written by setuptools_scm
84
+ **/_version.py
85
+
86
+ /log
87
+ */output*
88
+ /output
89
+ # the HPC container and job logs, made in the checkout by xpra-pull.sh / xpra-run.sh
90
+ muvis-align-xpra_latest/
91
+ muvis-align-xpra_latest.building/
92
+ muvis-align-xpra_latest.old/
93
+ muvis-align-*.log
94
+
95
+ # the plugin's project file, written where it runs
96
+ /muvis_align_project*.yml
@@ -0,0 +1,9 @@
1
+ <!-- This file is a placeholder for customizing description of your plugin
2
+ on the napari hub if you wish. The readme file will be used by default if
3
+ you wish not to do any customization for the napari hub listing.
4
+
5
+ If you need some help writing a good description, check out our
6
+ [guide](https://github.com/chanzuckerberg/napari-hub/wiki/Writing-the-Perfect-Description-for-your-Plugin)
7
+ -->
8
+
9
+ The developer has not yet provided a napari-hub specific description.
@@ -0,0 +1,9 @@
1
+ # You may use this file to customize how your plugin page appears
2
+ # on the napari hub: https://www.napari-hub.org/
3
+ # See their wiki for details https://github.com/chanzuckerberg/napari-hub/wiki
4
+
5
+ # Please note that this file should only be used IN ADDITION to entering
6
+ # metadata fields (such as summary, description, authors, and various URLS)
7
+ # in your standard python package metadata (e.g. setup.cfg, setup.py, or
8
+ # pyproject.toml), when you would like those fields to be displayed
9
+ # differently on the hub than in the napari application.
@@ -0,0 +1,27 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v6.0.0
4
+ hooks:
5
+ - id: check-docstring-first
6
+ - id: end-of-file-fixer
7
+ - id: trailing-whitespace
8
+ exclude: ^\.napari-hub/.*
9
+ - id: check-yaml # checks for correct yaml syntax for github actions ex.
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ rev: v0.15.1
12
+ hooks:
13
+ - id: ruff
14
+ - repo: https://github.com/psf/black
15
+ rev: 26.1.0
16
+ hooks:
17
+ - id: black
18
+ - repo: https://github.com/tlambert03/napari-plugin-checks
19
+ rev: v0.3.0
20
+ hooks:
21
+ - id: napari-plugin-checks
22
+ # https://mypy.readthedocs.io/en/stable/
23
+ # you may wish to add this as well!
24
+ # - repo: https://github.com/pre-commit/mirrors-mypy
25
+ # rev: v1.9.0
26
+ # hooks:
27
+ # - id: mypy
@@ -0,0 +1,41 @@
1
+ # Working conventions for this repo
2
+
3
+ Rules for working on muvis-align itself, distilled from recurring feedback across sessions. Follow these when making changes here.
4
+
5
+ ## Comments
6
+ - Code comments: 1-2 lines max, even for non-obvious WHY reasoning. No multi-line rationale blocks.
7
+ - Never narrate what changed, reference the current fix/task, or mention specific callers/sessions in a comment - that belongs in the commit message or chat response, not the code.
8
+ - Comments explain WHY (a hidden constraint, a subtle invariant), never WHAT (identifiers already say that).
9
+ - No performance statistics (timings, sizes, speedups) in comments - those go in the commit message or notes.
10
+
11
+ ## Testing
12
+ - For a small/localized fix, run only the targeted test file(s) for the area touched - not the full suite (10+ min).
13
+ - Reserve full-suite runs for larger/riskier changes, or once before pushing a batch of combined fixes.
14
+ - Never assert a registration's accuracy (an expected shift from phase correlation/SIFT, or how close two solvers' fits come): platform numerics and RANSAC vary, so such tests fail at random. Stub the registration result with a known transform and assert the code's handling of it exactly; check input preparation by value; compare two deterministic paths for identical output.
15
+ - Before adding a test, check for an existing one covering the same path - extend or parametrize it rather than adding a near-duplicate.
16
+ - When adding a feature, decide whether a test specifically for it belongs in the main tests or the check should be discarded once it has been verified.
17
+ - Don't create a new permanent test file per change - add tests to the existing file matching the module under test (e.g. `tests/test_utils.py` for `util.py`). Only give a feature its own test file when it's substantial/self-contained enough to warrant one.
18
+ - Test on the least data that exercises the change: a fusion rule needs a few sources at their metadata positions, not a registered project; repo `data/` or a subset glob before any full project.
19
+ - Plan one combined check per change instead of a run per question: decide up front what it must show (output, sizes, times), and reuse results rather than rerunning. Run a full project (e.g. meatballs) at most once, when a whole-run number (size, time) is the point.
20
+ - Keep written output small: no full-size fusions/exports unless their size or speed is what's measured, in the scratchpad, deleted once read.
21
+
22
+ ## Procedures
23
+ - Longer task-specific how-tos are project skills in `.claude/skills/` (e.g. `napari-ui-capture`: drive the plugin from a script and screenshot it). Read the matching `SKILL.md` when the task calls for it.
24
+ - `skills/muvis-align/` is the skill for people *using* muvis-align (pipeline YAML, Python API). Keep it in step with user-facing changes; it is not a guide for working on this repo.
25
+
26
+ ## Code style
27
+ - Avoid `continue` statements - restructure the loop body (e.g. invert the condition) instead.
28
+ - No single-letter variable names, comprehension variables included: `field for field in fields`, not `f for f in fields`.
29
+ - Reuse and extend existing functionality instead of writing a new module that parallels it (as `lazy_overview.py` and `fusion_blocks.py` did).
30
+ - No atomic one-line wrapper functions; keep code intuitive over clever.
31
+ - Weigh an optimisation against the code it adds: a ~15% gain rarely justifies a new class or module. Threaded/pooled efficiency code should take an argument to run without threading.
32
+ - For a restructure, write a detailed plan first and agree it before editing.
33
+
34
+ ## Carrying work across sessions
35
+ - Record the current task, its plan and how far it got under "In progress" in `notes/todo_known_issues.md` before editing code, and keep it updated. Clear it once the task is done.
36
+ - On "continue" with no other context, read that section first and resume from it.
37
+
38
+ ## Git
39
+ - Small, focused commits with a "why" in the message, not a changelog of "what".
40
+ - Work on `main` by default; create a branch only for major restructures or features.
41
+ - Never create git worktrees (no `EnterWorktree`, no `isolation: "worktree"` agents, no `git worktree add`).
@@ -0,0 +1 @@
1
+ @AGENTS.md