pigeon-tem-comms 0.1.0__py3-none-any.whl → 0.2.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.
- TEM_comms/__init__.py +6 -2
- TEM_comms/buffer.py +1 -1
- TEM_comms/camera.py +1 -1
- TEM_comms/scope.py +1 -1
- TEM_comms/stage/aperture.py +1 -1
- TEM_comms/stage/motion.py +1 -1
- TEM_comms/stage/rotation.py +1 -1
- TEM_comms/tile/__init__.py +1 -1
- TEM_comms/tile/statistics.py +1 -1
- TEM_comms/ui.py +42 -0
- {pigeon_tem_comms-0.1.0.dist-info → pigeon_tem_comms-0.2.0.dist-info}/METADATA +11 -1
- pigeon_tem_comms-0.2.0.dist-info/RECORD +17 -0
- {pigeon_tem_comms-0.1.0.dist-info → pigeon_tem_comms-0.2.0.dist-info}/WHEEL +1 -1
- pigeon_tem_comms-0.1.0.dist-info/RECORD +0 -16
- {pigeon_tem_comms-0.1.0.dist-info → pigeon_tem_comms-0.2.0.dist-info}/LICENSE +0 -0
- {pigeon_tem_comms-0.1.0.dist-info → pigeon_tem_comms-0.2.0.dist-info}/entry_points.txt +0 -0
- {pigeon_tem_comms-0.1.0.dist-info → pigeon_tem_comms-0.2.0.dist-info}/top_level.txt +0 -0
TEM_comms/__init__.py
CHANGED
|
@@ -3,11 +3,12 @@ from . import camera
|
|
|
3
3
|
from . import scope
|
|
4
4
|
from . import stage
|
|
5
5
|
from . import tile
|
|
6
|
+
from . import ui
|
|
6
7
|
|
|
7
8
|
import importlib.metadata
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
__version__ = importlib.metadata.version("
|
|
11
|
+
__version__ = importlib.metadata.version("pigeon-tem-comms")
|
|
11
12
|
|
|
12
13
|
topics = {
|
|
13
14
|
"buffer.status": buffer.Status,
|
|
@@ -31,7 +32,10 @@ topics = {
|
|
|
31
32
|
"tile.statistics.histogram": tile.statistics.Histogram,
|
|
32
33
|
"tile.statistics.min_max_mean": tile.statistics.MinMaxMean,
|
|
33
34
|
"tile.transform": tile.Transform,
|
|
35
|
+
"ui.edit": ui.Edit,
|
|
36
|
+
"ui.run": ui.Run,
|
|
37
|
+
"ui.setup": ui.Setup,
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
|
|
37
|
-
msgs = (topics, __version__)
|
|
41
|
+
msgs = (topics, __version__)
|
TEM_comms/buffer.py
CHANGED
TEM_comms/camera.py
CHANGED
TEM_comms/scope.py
CHANGED
TEM_comms/stage/aperture.py
CHANGED
TEM_comms/stage/motion.py
CHANGED
TEM_comms/stage/rotation.py
CHANGED
TEM_comms/tile/__init__.py
CHANGED
TEM_comms/tile/statistics.py
CHANGED
TEM_comms/ui.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from pigeon import BaseMessage
|
|
2
|
+
from typing import Optional
|
|
3
|
+
from pydantic import model_validator
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Edit(BaseMessage):
|
|
7
|
+
roi_id: str
|
|
8
|
+
roi_pos_x: int
|
|
9
|
+
roi_pox_y: int
|
|
10
|
+
roi_width: int
|
|
11
|
+
roi_height: int
|
|
12
|
+
roi_angle: float
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Run(BaseMessage):
|
|
16
|
+
session_id: Optional[str] = None
|
|
17
|
+
grid_first: Optional[int] = None
|
|
18
|
+
grid_last: Optional[int] = None
|
|
19
|
+
montage: bool = False
|
|
20
|
+
abort_now: bool = False
|
|
21
|
+
abort_at_end: bool = False
|
|
22
|
+
resume: bool = False
|
|
23
|
+
|
|
24
|
+
@model_validator(mode="after")
|
|
25
|
+
def check_grid(self):
|
|
26
|
+
assert self.montage != (self.grid_first is None)
|
|
27
|
+
assert self.montage != (self.grid_last is None)
|
|
28
|
+
return self
|
|
29
|
+
|
|
30
|
+
@model_validator(mode="after")
|
|
31
|
+
def check_session(self):
|
|
32
|
+
assert self.montage != (self.session_id is None)
|
|
33
|
+
return self
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Setup(BaseMessage):
|
|
37
|
+
conch_owner: Optional[str] = None
|
|
38
|
+
auto_focus: bool = False
|
|
39
|
+
auto_exposure: bool = False
|
|
40
|
+
lens_correction: bool = False
|
|
41
|
+
acquire_brightfield: bool = False
|
|
42
|
+
acquire_darkfield: bool = False
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pigeon-tem-comms
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Pigeon messages for the next generation TEM imaging system.
|
|
5
5
|
Author-email: Cameron Devine <cameron.devine@alleninstitute.org>
|
|
6
|
+
License: BSD 3 Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/AllenInstitute/TEM_comms
|
|
8
|
+
Project-URL: Documentation, https://alleninstitute.github.io/TEM_architecture/topics.html
|
|
9
|
+
Project-URL: Repository, https://github.com/AllenInstitute/TEM_comms
|
|
10
|
+
Project-URL: Issues, https://github.com/AllenInstitute/TEM_comms/issues
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
6
16
|
Requires-Python: >=3.10
|
|
7
17
|
Description-Content-Type: text/markdown
|
|
8
18
|
License-File: LICENSE
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
TEM_comms/__init__.py,sha256=0FngFKym-Yl33wkqr68k6YglJCbVs1fV63uHFTmzJwk,1229
|
|
2
|
+
TEM_comms/buffer.py,sha256=Jr6fUIbUPreQSSGKWR7jkA1McyZZv3lVE8uQSER8VL4,123
|
|
3
|
+
TEM_comms/camera.py,sha256=uBp9N00k4x_eYC_W8zUrTjFrmCpb6Tu2GQOG0WIGKwc,440
|
|
4
|
+
TEM_comms/scope.py,sha256=cj8S0BqR7RozFNh2TsiT-DnuRKCIdMKol5PdIxG65JU,501
|
|
5
|
+
TEM_comms/ui.py,sha256=8a3GxCjw7E52WcAgDZLlQ7S4L92w5GuhJK2V_tEdSSA,1055
|
|
6
|
+
TEM_comms/stage/__init__.py,sha256=xeB18s-MGkc83BsfWkUc0W3YwxoHVK-QfLAPfRelcFQ,66
|
|
7
|
+
TEM_comms/stage/aperture.py,sha256=hnd9HB6jYywHRQ1fB7suKEUvXZDT2VkE5cFJ3zKctPg,217
|
|
8
|
+
TEM_comms/stage/motion.py,sha256=NQPufhxRKB3ySEyPksDFi6srBlBGKxaqF5k2YAAfa9s,227
|
|
9
|
+
TEM_comms/stage/rotation.py,sha256=3khQqRCBDXNDQ5uArzhQ4kL0JP58wVMEbW3rG8hrZ_s,259
|
|
10
|
+
TEM_comms/tile/__init__.py,sha256=kK9thh69UavYZ3toRzc_BLwjR3_Yif1tTdRAGLncrzY,458
|
|
11
|
+
TEM_comms/tile/statistics.py,sha256=sQHeXtO3UB9k6lKtDEeO3e142aaAKelp-A8A_Bf5XJ8,242
|
|
12
|
+
pigeon_tem_comms-0.2.0.dist-info/LICENSE,sha256=tZfQIUX7uNGacTb751ZWInVenJl6OwYQihcGbYrKSts,1463
|
|
13
|
+
pigeon_tem_comms-0.2.0.dist-info/METADATA,sha256=Xz4Dnz98Mzl0R-r-pjPH81vCIx-QKM0V2SsSgSB_s10,1553
|
|
14
|
+
pigeon_tem_comms-0.2.0.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
|
15
|
+
pigeon_tem_comms-0.2.0.dist-info/entry_points.txt,sha256=KFi0hPNwGY3gEmJF_8_smglVpfbU24lcCy0t_TJPgtg,36
|
|
16
|
+
pigeon_tem_comms-0.2.0.dist-info/top_level.txt,sha256=3_1RcQ7xvS2dJEYnPIigo9snoKcSXSNJzPqunY0qydI,10
|
|
17
|
+
pigeon_tem_comms-0.2.0.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
TEM_comms/__init__.py,sha256=J5MBiI6dQibGSzEfDI689JU3pdoqugBNCx24WO4NTNY,1132
|
|
2
|
-
TEM_comms/buffer.py,sha256=H3RxH9QkR4N8uKOqDJeH-H3d73fw8gGiga7bmN_gXX0,126
|
|
3
|
-
TEM_comms/camera.py,sha256=q1VUhUcgliA7AFiGmC6hRF9KuqOYmd44P5UsOTGMfPE,443
|
|
4
|
-
TEM_comms/scope.py,sha256=TLUVd2uxVin7kY5eAeL8ZyJSkJr4A3OULY83xal3oS0,504
|
|
5
|
-
TEM_comms/stage/__init__.py,sha256=xeB18s-MGkc83BsfWkUc0W3YwxoHVK-QfLAPfRelcFQ,66
|
|
6
|
-
TEM_comms/stage/aperture.py,sha256=s6MxwgsX0aVCUIT3mHHDZXtmSg-XNE3dqx3EWa-3Kds,220
|
|
7
|
-
TEM_comms/stage/motion.py,sha256=6ZPHJu_WGu2TYLYbp_FmIjsXGDqqTvUBxNCVKBgw9Ns,230
|
|
8
|
-
TEM_comms/stage/rotation.py,sha256=9QpNtyD2iBW51mL0WJ_2nIcso4i51_FMJQEjAhI_vyU,262
|
|
9
|
-
TEM_comms/tile/__init__.py,sha256=CIwc7YH5FenTfNglBVUY5T7l3zZMPRh7RoM1vcGUUFg,461
|
|
10
|
-
TEM_comms/tile/statistics.py,sha256=gbsA43iWf2Bs7rlFZR8m0m0cQysxSeu0He9S6x7EH6Y,245
|
|
11
|
-
pigeon_tem_comms-0.1.0.dist-info/LICENSE,sha256=tZfQIUX7uNGacTb751ZWInVenJl6OwYQihcGbYrKSts,1463
|
|
12
|
-
pigeon_tem_comms-0.1.0.dist-info/METADATA,sha256=d3vooVtjyuJfhhseEotveYay9yv5MP7cPKf1d4hb9UQ,985
|
|
13
|
-
pigeon_tem_comms-0.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
14
|
-
pigeon_tem_comms-0.1.0.dist-info/entry_points.txt,sha256=KFi0hPNwGY3gEmJF_8_smglVpfbU24lcCy0t_TJPgtg,36
|
|
15
|
-
pigeon_tem_comms-0.1.0.dist-info/top_level.txt,sha256=3_1RcQ7xvS2dJEYnPIigo9snoKcSXSNJzPqunY0qydI,10
|
|
16
|
-
pigeon_tem_comms-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|