pigeon-tem-comms 0.4.7__py3-none-any.whl → 0.4.8__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/ui.py +9 -1
- {pigeon_tem_comms-0.4.7.dist-info → pigeon_tem_comms-0.4.8.dist-info}/METADATA +3 -3
- {pigeon_tem_comms-0.4.7.dist-info → pigeon_tem_comms-0.4.8.dist-info}/RECORD +7 -7
- {pigeon_tem_comms-0.4.7.dist-info → pigeon_tem_comms-0.4.8.dist-info}/WHEEL +1 -1
- {pigeon_tem_comms-0.4.7.dist-info → pigeon_tem_comms-0.4.8.dist-info}/LICENSE +0 -0
- {pigeon_tem_comms-0.4.7.dist-info → pigeon_tem_comms-0.4.8.dist-info}/entry_points.txt +0 -0
- {pigeon_tem_comms-0.4.7.dist-info → pigeon_tem_comms-0.4.8.dist-info}/top_level.txt +0 -0
TEM_comms/ui.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from pigeon import BaseMessage
|
|
2
|
-
from typing import Optional
|
|
2
|
+
from typing import Optional, Literal
|
|
3
3
|
from pydantic import model_validator
|
|
4
4
|
|
|
5
5
|
|
|
@@ -43,4 +43,12 @@ class Setup(BaseMessage):
|
|
|
43
43
|
center_beam: bool = False
|
|
44
44
|
spread_beam: bool = False
|
|
45
45
|
find_aperture: bool = False
|
|
46
|
+
calibrate_resolution: bool = False
|
|
46
47
|
grid: Optional[int] = None
|
|
48
|
+
mag_mode: Optional[Literal["LM", "MAG1", "MAG2"]] = None
|
|
49
|
+
mag: Optional[int] = None
|
|
50
|
+
|
|
51
|
+
@model_validator(mode="after")
|
|
52
|
+
def check_mag(self):
|
|
53
|
+
assert (self.mag_mode is None) == (self.mag is None)
|
|
54
|
+
return self
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pigeon-tem-comms
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.8
|
|
4
4
|
Summary: Pigeon messages for the next generation TEM imaging system.
|
|
5
5
|
Author-email: Cameron Devine <cameron.devine@alleninstitute.org>
|
|
6
6
|
License: BSD 3 Clause
|
|
@@ -19,7 +19,7 @@ License-File: LICENSE
|
|
|
19
19
|
Requires-Dist: pigeon-client
|
|
20
20
|
Requires-Dist: pydantic
|
|
21
21
|
|
|
22
|
-
[](https://github.com/AllenInstitute/TEM_comms/actions)
|
|
23
23
|
[](https://pypi.org/project/pigeon-tem-comms/)
|
|
24
24
|
|
|
25
25
|
# TEM Comms
|
|
@@ -4,16 +4,16 @@ TEM_comms/camera.py,sha256=L9ebaZra-M3g571PUzQCAuC92Auw4ox3gRceJ2uKRhs,522
|
|
|
4
4
|
TEM_comms/montage.py,sha256=PCfve__0M3S2RSmBtrDRlDlmIW_qJffDRE8gnlEHoxY,281
|
|
5
5
|
TEM_comms/qc.py,sha256=sujy2i0wimMvrHDPEXKdaiO7xxvRcHiy83mVpATLyqA,141
|
|
6
6
|
TEM_comms/scope.py,sha256=lPEKzWT2raR6ailiAitvWXH-Xu6fxWwYBf3GPfVIizc,761
|
|
7
|
-
TEM_comms/ui.py,sha256=
|
|
7
|
+
TEM_comms/ui.py,sha256=Yxd0i4wjmddDl9sVzcFHHu5b6n0ICzaO0b_8SmAysxg,1459
|
|
8
8
|
TEM_comms/stage/__init__.py,sha256=UVtYKzMBI01FUADS24xSItNIjhqdZtlDeJdqsDJNVIc,67
|
|
9
9
|
TEM_comms/stage/aperture.py,sha256=lyJO34_K76MKrZ-o2izd5V7eEN55d3lGu__RvZq-NlA,227
|
|
10
10
|
TEM_comms/stage/motion.py,sha256=1NSuGQvPjlxwnkaV410VGDBBtmsISQn_XjZcPuUXvQg,244
|
|
11
11
|
TEM_comms/stage/rotation.py,sha256=J7tAIP2nskjInhZmdIbqwrvxTFXihEynVOAyxbDDfjU,262
|
|
12
12
|
TEM_comms/tile/__init__.py,sha256=RlmgJt3ELn3PWlv1kIr0dRAgMaSaMcsy6fgtsQ3hMr0,500
|
|
13
13
|
TEM_comms/tile/statistics.py,sha256=big7ydZe18RaT_B_sh1ust7MiGITOZ1aJdH7mY9T2BY,307
|
|
14
|
-
pigeon_tem_comms-0.4.
|
|
15
|
-
pigeon_tem_comms-0.4.
|
|
16
|
-
pigeon_tem_comms-0.4.
|
|
17
|
-
pigeon_tem_comms-0.4.
|
|
18
|
-
pigeon_tem_comms-0.4.
|
|
19
|
-
pigeon_tem_comms-0.4.
|
|
14
|
+
pigeon_tem_comms-0.4.8.dist-info/LICENSE,sha256=tZfQIUX7uNGacTb751ZWInVenJl6OwYQihcGbYrKSts,1463
|
|
15
|
+
pigeon_tem_comms-0.4.8.dist-info/METADATA,sha256=AVhkDMwn-TTotoap-vJCUksrTzKlq936dIXDvcHLVdM,1553
|
|
16
|
+
pigeon_tem_comms-0.4.8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
17
|
+
pigeon_tem_comms-0.4.8.dist-info/entry_points.txt,sha256=X2WfBCDgfH9XVVqiI4rLu7BLyMNuLW6WWckqXxfbrgk,38
|
|
18
|
+
pigeon_tem_comms-0.4.8.dist-info/top_level.txt,sha256=3_1RcQ7xvS2dJEYnPIigo9snoKcSXSNJzPqunY0qydI,10
|
|
19
|
+
pigeon_tem_comms-0.4.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|