closed-loop-microscopy 1.1.0__py3-none-any.whl

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 (74) hide show
  1. closed_loop_microscopy-1.1.0.dist-info/METADATA +118 -0
  2. closed_loop_microscopy-1.1.0.dist-info/RECORD +74 -0
  3. closed_loop_microscopy-1.1.0.dist-info/WHEEL +4 -0
  4. closed_loop_microscopy-1.1.0.dist-info/entry_points.txt +5 -0
  5. closed_loop_microscopy-1.1.0.dist-info/licenses/LICENSE.md +7 -0
  6. pyclm/__init__.py +26 -0
  7. pyclm/__main__.py +8 -0
  8. pyclm/check.py +931 -0
  9. pyclm/cli.py +256 -0
  10. pyclm/commands.py +183 -0
  11. pyclm/controller.py +447 -0
  12. pyclm/convert_hdf5s.py +273 -0
  13. pyclm/core/__init__.py +20 -0
  14. pyclm/core/base_process.py +166 -0
  15. pyclm/core/core_interface.py +47 -0
  16. pyclm/core/datatypes.py +142 -0
  17. pyclm/core/events.py +194 -0
  18. pyclm/core/experiments.py +403 -0
  19. pyclm/core/grid.py +272 -0
  20. pyclm/core/kinds.py +42 -0
  21. pyclm/core/manager.py +861 -0
  22. pyclm/core/measure.py +266 -0
  23. pyclm/core/messages.py +124 -0
  24. pyclm/core/microscope.py +504 -0
  25. pyclm/core/pattern_process.py +282 -0
  26. pyclm/core/patterns/__init__.py +60 -0
  27. pyclm/core/patterns/bar_patterns.py +259 -0
  28. pyclm/core/patterns/cell_intensity_patterns.py +181 -0
  29. pyclm/core/patterns/composite.py +220 -0
  30. pyclm/core/patterns/embryo_patterns.py +90 -0
  31. pyclm/core/patterns/fbc_cell_movement.py +295 -0
  32. pyclm/core/patterns/pattern.py +610 -0
  33. pyclm/core/patterns/pulse_patterns.py +261 -0
  34. pyclm/core/patterns/static_patterns.py +58 -0
  35. pyclm/core/patterns/wave_patterns.py +95 -0
  36. pyclm/core/patterns/zoo.py +231 -0
  37. pyclm/core/plan.py +623 -0
  38. pyclm/core/position_mover.py +185 -0
  39. pyclm/core/queues.py +41 -0
  40. pyclm/core/real_core.py +158 -0
  41. pyclm/core/router.py +422 -0
  42. pyclm/core/segmentation/__init__.py +2 -0
  43. pyclm/core/segmentation/cellpose_segmentation.py +113 -0
  44. pyclm/core/segmentation/segmentation.py +48 -0
  45. pyclm/core/segmentation_process.py +179 -0
  46. pyclm/core/settings.py +120 -0
  47. pyclm/core/storage/__init__.py +37 -0
  48. pyclm/core/storage/base.py +234 -0
  49. pyclm/core/storage/events.py +130 -0
  50. pyclm/core/storage/hdf5_v1.py +337 -0
  51. pyclm/core/storage/ome_zarr.py +861 -0
  52. pyclm/core/tracking/__init__.py +28 -0
  53. pyclm/core/tracking/centroid.py +75 -0
  54. pyclm/core/tracking/tracking.py +124 -0
  55. pyclm/core/tracking_process.py +106 -0
  56. pyclm/core/virtual_microscope/__init__.py +0 -0
  57. pyclm/core/virtual_microscope/simulated_core.py +262 -0
  58. pyclm/core/virtual_microscope/simulated_source.py +206 -0
  59. pyclm/core/writer_process.py +130 -0
  60. pyclm/demo.py +225 -0
  61. pyclm/directories.py +563 -0
  62. pyclm/gui/__init__.py +28 -0
  63. pyclm/gui/debug_viewer.py +41 -0
  64. pyclm/gui/gui_controller.py +551 -0
  65. pyclm/gui/widgets.py +292 -0
  66. pyclm/io/__init__.py +29 -0
  67. pyclm/io/export.py +202 -0
  68. pyclm/io/readers.py +589 -0
  69. pyclm/methods.py +249 -0
  70. pyclm/mmconfig.py +143 -0
  71. pyclm/preview.py +414 -0
  72. pyclm/run_pyclm.py +298 -0
  73. pyclm/schema.py +806 -0
  74. pyclm/templates.py +165 -0
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: closed-loop-microscopy
3
+ Version: 1.1.0
4
+ Summary: Closed-loop feedback control for optogenetic microscopy in Python
5
+ Keywords: microscopy,optogenetics,closed-loop,micro-manager,DMD
6
+ Author: Harrison-Oatman
7
+ Author-email: Harrison-Oatman <ho6729@princeton.edu>
8
+ License-Expression: MIT
9
+ License-File: LICENSE.md
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
13
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
14
+ Requires-Dist: h5py>=3.14.0
15
+ Requires-Dist: natsort>=8.4.0
16
+ Requires-Dist: numpy
17
+ Requires-Dist: opencv-python-headless>=4.12.0.88
18
+ Requires-Dist: pyarrow>=15
19
+ Requires-Dist: pydantic>=2
20
+ Requires-Dist: pymmcore-plus>=0.14.0
21
+ Requires-Dist: pymmcore>=11.2.1.71.0
22
+ Requires-Dist: pyyaml>=6.0.3
23
+ Requires-Dist: scikit-image>=0.25.2
24
+ Requires-Dist: scipy
25
+ Requires-Dist: tifffile>=2025.9.20
26
+ Requires-Dist: useq-schema>=0.9.2
27
+ Requires-Dist: zarr>=3.0
28
+ Requires-Dist: pycromanager>=1.0.2 ; extra == 'calibration'
29
+ Requires-Dist: cellpose>=4.0.6 ; extra == 'cellpose'
30
+ Requires-Dist: torch ; extra == 'cellpose'
31
+ Requires-Dist: torchvision ; extra == 'cellpose'
32
+ Requires-Dist: napari>=0.9.0 ; extra == 'gui'
33
+ Requires-Dist: pyside6>=6.10.2 ; extra == 'gui'
34
+ Requires-Python: >=3.11
35
+ Project-URL: Documentation, https://pyclm.readthedocs.io
36
+ Project-URL: Homepage, https://github.com/Harrison-Oatman/PyCLM
37
+ Project-URL: Issues, https://github.com/Harrison-Oatman/PyCLM/issues
38
+ Provides-Extra: calibration
39
+ Provides-Extra: cellpose
40
+ Provides-Extra: gui
41
+ Description-Content-Type: text/markdown
42
+
43
+ # PyCLM
44
+
45
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20385964.svg)](https://doi.org/10.5281/zenodo.20385964)
46
+
47
+ A Modular Closed-Loop Microscopy Software in Python
48
+
49
+ Please see our documentation at [readthedocs](https://pyclm.readthedocs.io/en/latest/first_time_setup.html)
50
+
51
+ ![](documentation/imgs/Figure%201.png "PyCLM Overview")
52
+
53
+ ## Overview
54
+
55
+ PyCLM is a python-based closed-loop microscopy software designed for running many dynamic and/or feedback-controlled optogenetic experiments simultaneously. Through PyCLM, it is possible to design spatial light patterns that change over time, follow individual cell positions, or change in response to cell features.
56
+
57
+ This approach to closed-loop microscopy is oriented around three major goals:
58
+
59
+ 1. **Efficiency.**
60
+ Ideally, the number of possible simultaneous experiments should be limited only by the physical constraints of the microscopy system.
61
+ - Microscope control, data export, image segmentation, and pattern generation are split into separate processes that run in parallel, minimizing unneeded microscope downtime.
62
+
63
+ 2. **(Re)usability.** Re-running experiments, combining multiple experiments, or changing experimental parameters should be as quick as possible, without requiring any programming experience.
64
+ - Descriptive and intuitively organized .toml files are used for experiment configuration, and can be reused or quickly edited for later experiments.
65
+ - Several common use-case configurations are provided for dynamic light input and feedback control experiments.
66
+
67
+ 3. **Extensibility.** It should be possible to implement a wide range of new segmentation and stimulation methods on top of the existing software.
68
+ - Segmentation and stimulation methods inherit from a base class, and are required to implement three straightforward functions.
69
+
70
+ ## Installation
71
+
72
+ ```bash
73
+ pip install "closed-loop-microscopy[gui]"
74
+ ```
75
+
76
+ The package is `closed-loop-microscopy`; the import name and the command are
77
+ `pyclm`. Leave out `[gui]` for a headless install (checking, previews, dry
78
+ runs, reading data). For development, clone the repository and run
79
+ `uv sync`.
80
+
81
+ Try it without a microscope:
82
+
83
+ ```bash
84
+ pyclm new demo --demo
85
+ pyclm run demo --dry --gui
86
+ ```
87
+
88
+ The demo runs two experiments on the virtual microscope with synthetic cells:
89
+ a sweeping bar of light, and a closed loop that segments the cells with a
90
+ method the directory brings along (`demo_methods.py`) and lights the outward
91
+ half of each.
92
+
93
+ See [First-Time Setup Guide](https://pyclm.readthedocs.io/en/latest/first_time_setup.html) to get started.
94
+
95
+ ### Hardware requirement: Micro-Manager
96
+
97
+ PyCLM controls hardware through [pymmcore-plus](https://github.com/pymmcore-plus/pymmcore-plus), which wraps the [Micro-Manager](https://micro-manager.org) C++ core. The Python package installs without issue, but running a real experiment requires:
98
+
99
+ 1. **Install Micro-Manager** — download the nightly build for your platform from [micro-manager.org](https://micro-manager.org/wiki/Download_Micro-Manager_Latest_Release).
100
+ 2. **Point PyCLM at your MM installation** — set the `config_path` field in `pyclm_config.toml` to your Micro-Manager `.cfg` hardware configuration file.
101
+
102
+ Importing the package and using the dry-run (`--dry`) mode work without a Micro-Manager installation.
103
+
104
+
105
+ ## Citation
106
+
107
+ If you use PyCLM in your research, please cite:
108
+
109
+ > Oatman HR, Lad BC, Nguyen L, Gubbens JH, Toettcher JE. An optogenetic smart
110
+ > microscopy platform reveals signaling dynamics-dependent control over
111
+ > collective cell migration. *Cell Systems* 17(9) (2026).
112
+ > [doi:10.1016/j.cels.2026.101674](https://doi.org/10.1016/j.cels.2026.101674)
113
+
114
+ The paper describes version 1.0.1. To record the version you used, also cite
115
+ that release: every release has its own DOI on Zenodo, all listed under
116
+ [doi:10.5281/zenodo.20385964](https://doi.org/10.5281/zenodo.20385964)
117
+ (which always resolves to the latest). GitHub's "Cite this repository" button
118
+ gives both, from `CITATION.cff`.
@@ -0,0 +1,74 @@
1
+ pyclm/__init__.py,sha256=HVlGMaiBPG6JQ-8Q5eDvz7c_V_NrfIr7Kykw5VB7vo0,779
2
+ pyclm/__main__.py,sha256=N_-TyvUEERrgn485luHAuGuJhlmimQpdXFh9gz0By7A,159
3
+ pyclm/check.py,sha256=TcGmK-c9vF-EoLtBO_IFedAqYQ-oHhRNaEO8KdLoig4,34957
4
+ pyclm/cli.py,sha256=ug-mAMWnsEktf9MK2ww7YWcNqk1zuhzb3wd0MYpS6-A,8357
5
+ pyclm/commands.py,sha256=ZRVsSRhcUpfOtQk7xsxHtNS_Hfwnh40NOubW2BL_I0Y,6209
6
+ pyclm/controller.py,sha256=QZYzW12mVAixKTa-zkWZ_uKpFpNQ9ggW3AFLBu85jS8,17832
7
+ pyclm/convert_hdf5s.py,sha256=B0h--wjXlehM6lMrIB2VqHBs01w_pBDy7sb2YNpFZ0k,8038
8
+ pyclm/core/__init__.py,sha256=0yk8vs0e111K5Mbjw_7ASmIVAa2dmCW0C581vfCTN3Y,926
9
+ pyclm/core/base_process.py,sha256=hMniAWvLVTHEjMmG-HT-nLrxXFdf3_-EIgY8iUEbmaM,5897
10
+ pyclm/core/core_interface.py,sha256=DzYwSkxdzeXKAdEYTM3Ww_goT9WMtBf0p4n8MxRj76Q,1723
11
+ pyclm/core/datatypes.py,sha256=fhkLqPYYU6NKXwdZUeNYklLtSElOw5xxlMyrzNhi4JA,4063
12
+ pyclm/core/events.py,sha256=SJsS8ToAljt0k4QSnrfb5czyArZJpMvDVmX0yIW5Njs,5849
13
+ pyclm/core/experiments.py,sha256=2a4frDSLWtnj7V1Z7hBQITWsVxWecIZgt0laWZVyi3s,12311
14
+ pyclm/core/grid.py,sha256=mzKQZBvmD9udoNZ7-8jmBhU7PUNQS54AU7g2WHYhq68,10018
15
+ pyclm/core/kinds.py,sha256=hKuwTx8K65RdVjUxpzCkr3S98W4Z2hiaYhvH9jSqHJg,1427
16
+ pyclm/core/manager.py,sha256=Avntubsv7UYx1Dh3fcWWpxWBwsmSxyDtm6sNEI_jCZo,31845
17
+ pyclm/core/measure.py,sha256=Z6SvidIWHKwIWKEss_Afm61viWpPuLvs8cwUUJMvTQU,9763
18
+ pyclm/core/messages.py,sha256=ywcV03KTM2JZ_1aFaHozgrd9_Tm-XCFvWf0Dilw22NA,3611
19
+ pyclm/core/microscope.py,sha256=bIfyU7-OMD3NAXd1okZV1DT3oNmhzuoI2SOdygcPSPE,17953
20
+ pyclm/core/pattern_process.py,sha256=NhBW_ZsVR0j_sMaXrwPds0mjJIh9NrJ8XBEyOsl_a6A,9907
21
+ pyclm/core/patterns/__init__.py,sha256=Y26AJIUv55hbYYA_j4ECA-mPE-zTF-aSPen5jm_57VI,1583
22
+ pyclm/core/patterns/bar_patterns.py,sha256=8zwsZ7c6OXX_rSg7y-_Bd_AmxTSQ5obdpghBGMmUo-A,8512
23
+ pyclm/core/patterns/cell_intensity_patterns.py,sha256=nwvBK1rS1qqufsLR-IPgYo40MqvTf6CUz2WIwVwZydI,5133
24
+ pyclm/core/patterns/composite.py,sha256=DIUeU2BDLiQ19CiDtoj_Tn2QHG520MujVPebN1yiIbI,8692
25
+ pyclm/core/patterns/embryo_patterns.py,sha256=kqNYGSeBX3vR4bVcufWcIIbN7VzR3SF2gPbJy9qvrBs,2559
26
+ pyclm/core/patterns/fbc_cell_movement.py,sha256=Tu0mPCcLdwkBKIiS-2nnuq1RjZMqItWO4zqtNtbtDmw,8841
27
+ pyclm/core/patterns/pattern.py,sha256=xMTlbKoTNxUMjGmEt2XcYJ6-0G7vIq_fsUISfs5LONo,23065
28
+ pyclm/core/patterns/pulse_patterns.py,sha256=bxL2XamIYBan_g3Nb2pxc5KLvqRf23bgDmDqsLg1pkM,9371
29
+ pyclm/core/patterns/static_patterns.py,sha256=CMQmPJjOLsTNcdG6RddgT6ZcnDDknwYsKDlT86KLyHY,1319
30
+ pyclm/core/patterns/wave_patterns.py,sha256=OCz2waIlJg3zQRPPvFegp2bsSPBQ35jQt1tpjbphJ6s,3068
31
+ pyclm/core/patterns/zoo.py,sha256=wkoK870pvcIEXpfJYDXogWnoug_mHYSZqrB-5zv4DXg,7267
32
+ pyclm/core/plan.py,sha256=BgSXIwGdKXXQdO9CwkTOQy_cP9cTDt0_s68Fj15H_t0,23231
33
+ pyclm/core/position_mover.py,sha256=OgmD8dbHnGJPYUnlEDsElG1fRjrcF4FHe6mQB6NvJQo,6721
34
+ pyclm/core/queues.py,sha256=mlDUcGxgj3O2ePSJcVvNHx1h4hXpH1YqDLDye-6Y514,1470
35
+ pyclm/core/real_core.py,sha256=15YHpW8XsJeQVowz7AcyBZ8P3fJQBtIE54--Yq_vuYg,5072
36
+ pyclm/core/router.py,sha256=XomFUoUEFkveeKTy1hVn2Zr92ZMBh5WyIfTzHMkAa5c,17090
37
+ pyclm/core/segmentation/__init__.py,sha256=30GVYyYAj13YQUSCcTd-GSdXhYaW4nJnButsyrpW-xk,107
38
+ pyclm/core/segmentation/cellpose_segmentation.py,sha256=aujFV1MRBHkK8MV2YizP9ya4DQfKzVj3Amv-bdmGE6w,3177
39
+ pyclm/core/segmentation/segmentation.py,sha256=yZWfX4G7P8eGlBntXMSmhzHSpVosq5XUtUUYkw_gQrQ,1302
40
+ pyclm/core/segmentation_process.py,sha256=70cHVy-aobXIzwCiGbdvfHYDrsTnm92eI7Bb3rKbCeI,6424
41
+ pyclm/core/settings.py,sha256=77szVTpB2t6ETqIUmp8Z8MCbkzFx8eYzN8z-uV4MI4I,4229
42
+ pyclm/core/storage/__init__.py,sha256=4xW7yh7hDTnvGGcbNOWLTlmtj5PeNlVWFWFZrJqjkVE,868
43
+ pyclm/core/storage/base.py,sha256=bSukzVP-VQUQGz5WBZwmMII-BACvZ7h3acKnc-WkB_U,8401
44
+ pyclm/core/storage/events.py,sha256=m971XVw-qWJ0A-h354vFYNtiLOxZF0j01_uehrUNnhc,3559
45
+ pyclm/core/storage/hdf5_v1.py,sha256=fXNC-D_AuNlnGdEqV_e7gqlyj-92OjO9xRDBueiKsJk,12231
46
+ pyclm/core/storage/ome_zarr.py,sha256=EUB8aD7E3-W0zhoUuj9uM03wnnVwazy1eNnJG2Wttws,32312
47
+ pyclm/core/tracking/__init__.py,sha256=hEC2956Rxn4rYxn_p6QgNhCWW4vtSXgLuNQFBIb3Y-U,585
48
+ pyclm/core/tracking/centroid.py,sha256=YkfujgzI9hvh5n8cwB2uKQ8QoBMDAyI4qZWaMTNIvOE,2702
49
+ pyclm/core/tracking/tracking.py,sha256=28JhPTOyBHmXIZukuzkzEPiDfTscWfEqVTI87tZCPrk,3745
50
+ pyclm/core/tracking_process.py,sha256=R2QkWysR3s562ACpzMdragKOfPuzsfQcjbbM_hDmHMI,4187
51
+ pyclm/core/virtual_microscope/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ pyclm/core/virtual_microscope/simulated_core.py,sha256=aOSS04R5oDtRESVMdjIcKocQj1-LAc1ukoOQIQoRbp0,9904
53
+ pyclm/core/virtual_microscope/simulated_source.py,sha256=SQbfmXOZZ1bWTg1wb0KGq-usFPOpSROcqkBec4Qg5Og,7461
54
+ pyclm/core/writer_process.py,sha256=N1IzAZNOOCMBbkPhlDSzEJ1_sbGISNj6uKRTxT4H2WA,4588
55
+ pyclm/demo.py,sha256=I1ZMEMb62momwD39op7JAiAOYEFi1jfhByBWraSku2o,8200
56
+ pyclm/directories.py,sha256=bhpDFVXcySDxUAtQBOpq3wunXqq3q7Qc4xIkH1CnZGs,19825
57
+ pyclm/gui/__init__.py,sha256=R66pYbrHyKoccKa9pbGUrmdVe7fNDn33ZkT9cSwJinw,882
58
+ pyclm/gui/debug_viewer.py,sha256=qrAIohVS74cJuMHPNCLXYtdEPUrAcWADC5RKc-4gxaM,1077
59
+ pyclm/gui/gui_controller.py,sha256=DzksILhgmbUjf9sHjP2dxaEefgbqle2RNkTt3Lrmi6o,20852
60
+ pyclm/gui/widgets.py,sha256=YodevB9gy-R6KfuEAQPWcV2doZ3pXs89O_p4Ww9o9BE,9914
61
+ pyclm/io/__init__.py,sha256=dHpPlppRq4XYqeSOrck5tAw-hy31gx6MuNyqD3eElzw,659
62
+ pyclm/io/export.py,sha256=tYyCE3pukkUc6FxEZlmwNVFVJDh68KmGu4Y9zA4B278,6933
63
+ pyclm/io/readers.py,sha256=-EUf9BjRg61mpyo9T3_thQIvw5q6HL-tWWJAX9rVev8,19757
64
+ pyclm/methods.py,sha256=pGu28yktmGiQ0j1hnKKkjOj02s901xEUZ1wwi3D3ork,9229
65
+ pyclm/mmconfig.py,sha256=Jq5U30rVGp-w-17duy6paCJbgJqMj5OWknxjZLlJgRc,6030
66
+ pyclm/preview.py,sha256=yU3ArnXpGj2H2_RMaSD_9RiOq1v6lQddmrgRPiM6DjQ,15904
67
+ pyclm/run_pyclm.py,sha256=b67Fq2mji8foYOZ0E4davKhvcL5yDYs85Gs61NxJRCk,10528
68
+ pyclm/schema.py,sha256=MJB3gJL8whnXC8092Zu2YBQfRBFcv4TMdxkzpRG9tAs,29110
69
+ pyclm/templates.py,sha256=UbSq1_8cu1h8GHQlb6a1SKcNDgdtRiJfA1j6x76s8S4,5720
70
+ closed_loop_microscopy-1.1.0.dist-info/licenses/LICENSE.md,sha256=Or_tv2KjiYEd_KpoL9oasHptRQPqqRuIlfmhrU-CopQ,1043
71
+ closed_loop_microscopy-1.1.0.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
72
+ closed_loop_microscopy-1.1.0.dist-info/entry_points.txt,sha256=COJoliu1zIRcBdc8qOF_Mw-zuQnE2HcJeaLFvfDZABk,124
73
+ closed_loop_microscopy-1.1.0.dist-info/METADATA,sha256=cVKwsAoCEDqJWKesNUSEHHPI2N9jhQ4FfZysvL8URyU,5582
74
+ closed_loop_microscopy-1.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.8.24
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ convert_hdf5s = pyclm.convert_hdf5s:main
3
+ gui = pyclm.gui.gui_controller:main
4
+ pyclm = pyclm.__main__:main
5
+
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2025
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
pyclm/__init__.py ADDED
@@ -0,0 +1,26 @@
1
+ import os
2
+
3
+ os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
4
+
5
+ from importlib.metadata import PackageNotFoundError
6
+ from importlib.metadata import version as _version
7
+
8
+ try:
9
+ # the distribution is closed-loop-microscopy; the import name is pyclm
10
+ __version__ = _version("closed-loop-microscopy")
11
+ except PackageNotFoundError: # a source tree that was never installed
12
+ __version__ = "unknown"
13
+
14
+ from .controller import Controller
15
+ from .core import (
16
+ AcquisitionPlan,
17
+ MicroscopePosition,
18
+ PatternContext,
19
+ PatternMethod,
20
+ SegmentationMethod,
21
+ TrackingMethod,
22
+ Tracks,
23
+ )
24
+ from .core.measure import PerTrack, Regions, nuclear_cytosolic_ratio
25
+ from .core.position_mover import BasicPositionMover, PFSPositionMover, PositionMover
26
+ from .run_pyclm import run_pyclm
pyclm/__main__.py ADDED
@@ -0,0 +1,8 @@
1
+ """``python -m pyclm`` and the ``pyclm`` command: see :mod:`pyclm.cli`."""
2
+
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())