pigeon-tem-comms 0.1.1__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 +5 -1
- TEM_comms/ui.py +42 -0
- {pigeon_tem_comms-0.1.1.dist-info → pigeon_tem_comms-0.2.0.dist-info}/METADATA +1 -1
- {pigeon_tem_comms-0.1.1.dist-info → pigeon_tem_comms-0.2.0.dist-info}/RECORD +8 -7
- {pigeon_tem_comms-0.1.1.dist-info → pigeon_tem_comms-0.2.0.dist-info}/WHEEL +1 -1
- {pigeon_tem_comms-0.1.1.dist-info → pigeon_tem_comms-0.2.0.dist-info}/LICENSE +0 -0
- {pigeon_tem_comms-0.1.1.dist-info → pigeon_tem_comms-0.2.0.dist-info}/entry_points.txt +0 -0
- {pigeon_tem_comms-0.1.1.dist-info → pigeon_tem_comms-0.2.0.dist-info}/top_level.txt +0 -0
TEM_comms/__init__.py
CHANGED
|
@@ -3,6 +3,7 @@ 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
|
|
|
@@ -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/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,16 +1,17 @@
|
|
|
1
|
-
TEM_comms/__init__.py,sha256=
|
|
1
|
+
TEM_comms/__init__.py,sha256=0FngFKym-Yl33wkqr68k6YglJCbVs1fV63uHFTmzJwk,1229
|
|
2
2
|
TEM_comms/buffer.py,sha256=Jr6fUIbUPreQSSGKWR7jkA1McyZZv3lVE8uQSER8VL4,123
|
|
3
3
|
TEM_comms/camera.py,sha256=uBp9N00k4x_eYC_W8zUrTjFrmCpb6Tu2GQOG0WIGKwc,440
|
|
4
4
|
TEM_comms/scope.py,sha256=cj8S0BqR7RozFNh2TsiT-DnuRKCIdMKol5PdIxG65JU,501
|
|
5
|
+
TEM_comms/ui.py,sha256=8a3GxCjw7E52WcAgDZLlQ7S4L92w5GuhJK2V_tEdSSA,1055
|
|
5
6
|
TEM_comms/stage/__init__.py,sha256=xeB18s-MGkc83BsfWkUc0W3YwxoHVK-QfLAPfRelcFQ,66
|
|
6
7
|
TEM_comms/stage/aperture.py,sha256=hnd9HB6jYywHRQ1fB7suKEUvXZDT2VkE5cFJ3zKctPg,217
|
|
7
8
|
TEM_comms/stage/motion.py,sha256=NQPufhxRKB3ySEyPksDFi6srBlBGKxaqF5k2YAAfa9s,227
|
|
8
9
|
TEM_comms/stage/rotation.py,sha256=3khQqRCBDXNDQ5uArzhQ4kL0JP58wVMEbW3rG8hrZ_s,259
|
|
9
10
|
TEM_comms/tile/__init__.py,sha256=kK9thh69UavYZ3toRzc_BLwjR3_Yif1tTdRAGLncrzY,458
|
|
10
11
|
TEM_comms/tile/statistics.py,sha256=sQHeXtO3UB9k6lKtDEeO3e142aaAKelp-A8A_Bf5XJ8,242
|
|
11
|
-
pigeon_tem_comms-0.
|
|
12
|
-
pigeon_tem_comms-0.
|
|
13
|
-
pigeon_tem_comms-0.
|
|
14
|
-
pigeon_tem_comms-0.
|
|
15
|
-
pigeon_tem_comms-0.
|
|
16
|
-
pigeon_tem_comms-0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|