pigeon-tem-comms 0.2.0__py3-none-any.whl → 0.4.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 CHANGED
@@ -4,11 +4,8 @@ from . import scope
4
4
  from . import stage
5
5
  from . import tile
6
6
  from . import ui
7
+ from . import montage
7
8
 
8
- import importlib.metadata
9
-
10
-
11
- __version__ = importlib.metadata.version("pigeon-tem-comms")
12
9
 
13
10
  topics = {
14
11
  "buffer.status": buffer.Status,
@@ -35,7 +32,6 @@ topics = {
35
32
  "ui.edit": ui.Edit,
36
33
  "ui.run": ui.Run,
37
34
  "ui.setup": ui.Setup,
35
+ "montage.start": montage.Start,
36
+ "montage.finished": montage.Finished,
38
37
  }
39
-
40
-
41
- msgs = (topics, __version__)
TEM_comms/camera.py CHANGED
@@ -1,23 +1,30 @@
1
1
  from pigeon import BaseMessage
2
+ from typing import Optional
3
+
2
4
 
3
5
  class Command(BaseMessage):
4
6
  tile_id: str
5
7
 
8
+
6
9
  class Image(BaseMessage):
7
10
  tile_id: str
8
11
  path: str
9
12
 
13
+
10
14
  class Settings(BaseMessage):
11
15
  exposure: float | None = None
16
+ gain: Optional[float] = None
12
17
  width: int | None = None
13
18
  height: int | None = None
14
19
 
20
+
15
21
  class Status(BaseMessage):
16
22
  exposure: float
23
+ gain: float
17
24
  width: int
18
25
  height: int
19
26
  temp: float
20
27
  target_temp: float
21
28
  device_name: str
22
29
  device_model_id: int
23
- device_sn: str
30
+ device_sn: str
TEM_comms/montage.py ADDED
@@ -0,0 +1,15 @@
1
+ from pigeon import BaseMessage
2
+ from typing import Mapping, List, Any
3
+
4
+
5
+ class Start(BaseMessage):
6
+ montage_id: str
7
+ num_tiles: int
8
+
9
+
10
+ class Finished(BaseMessage):
11
+ montage_id: str
12
+ num_tiles: int
13
+ roi: str
14
+ specimen: str
15
+ metadata: Mapping[str, Any] | List[Any]
TEM_comms/scope.py CHANGED
@@ -2,6 +2,7 @@ from pigeon import BaseMessage
2
2
  from typing import Literal
3
3
  from pydantic import model_validator
4
4
 
5
+
5
6
  class Command(BaseMessage):
6
7
  focus: int | None = None
7
8
  mag_mode: Literal["LM", "MAG1", "MAG2"] | None = None
@@ -18,4 +19,4 @@ class Status(BaseMessage):
18
19
  aperture: str | None
19
20
  mag_mode: str
20
21
  mag: int
21
- tank_voltage: int
22
+ tank_voltage: int
@@ -1,3 +1,3 @@
1
1
  from . import aperture
2
2
  from . import motion
3
- from . import rotation
3
+ from . import rotation
@@ -1,10 +1,12 @@
1
1
  from pigeon import BaseMessage
2
2
 
3
+
3
4
  class Command(BaseMessage):
4
5
  aperture_id: int | None = None
5
6
  calibrate: bool = False
6
7
 
8
+
7
9
  class Status(BaseMessage):
8
10
  current_aperture: int
9
11
  calibrated: bool
10
- error: str = ""
12
+ error: str = ""
TEM_comms/stage/motion.py CHANGED
@@ -1,12 +1,14 @@
1
1
  from pigeon import BaseMessage
2
2
 
3
+
3
4
  class Command(BaseMessage):
4
5
  x: int | None = None
5
6
  y: int | None = None
6
7
  calibrate: bool = False
7
8
 
9
+
8
10
  class Status(BaseMessage):
9
11
  x: int
10
12
  y: int
11
13
  in_motion: bool
12
- error: str = ""
14
+ error: str = ""
@@ -1,12 +1,14 @@
1
1
  from pigeon import BaseMessage
2
2
 
3
+
3
4
  class Command(BaseMessage):
4
5
  angle_x: float | None = None
5
6
  angle_y: float | None = None
6
7
  calibrate: bool = False
7
8
 
9
+
8
10
  class Status(BaseMessage):
9
11
  angle_x: float
10
12
  angle_y: float
11
13
  in_motion: bool
12
- error: str = ""
14
+ error: str = ""
@@ -12,22 +12,24 @@ class Minimap(BaseMessage):
12
12
  path: str
13
13
 
14
14
 
15
- class Processed(BaseMessage):
16
- tile_id: str
17
- path: str
18
-
19
-
20
15
  class Raw(BaseMessage):
21
16
  tile_id: str
22
17
  montage_id: str
23
18
  path: str
24
19
  row: int
25
20
  column: int
26
- overlap: float
21
+ overlap: int
27
22
 
28
23
 
29
24
  class Transform(BaseMessage):
25
+ montage_id: str
30
26
  tile_id: str
31
27
  rotation: float
32
28
  x: float
33
29
  y: float
30
+
31
+
32
+ class Processed(BaseMessage):
33
+ montage_id: str
34
+ tile_id: str
35
+ path: str
@@ -1,15 +1,22 @@
1
1
  from pigeon import BaseMessage
2
2
 
3
+
3
4
  class Focus(BaseMessage):
5
+ montage_id: str
4
6
  tile_id: str
5
7
  focus: float
6
8
 
9
+
7
10
  class Histogram(BaseMessage):
11
+ montage_id: str
8
12
  tile_id: str
9
13
  path: str
10
14
 
15
+
11
16
  class MinMaxMean(BaseMessage):
17
+ montage_id: str
12
18
  tile_id: str
13
19
  min: int
14
20
  max: int
15
- mean: int
21
+ mean: int
22
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pigeon-tem-comms
3
- Version: 0.2.0
3
+ Version: 0.4.0
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
@@ -0,0 +1,18 @@
1
+ TEM_comms/__init__.py,sha256=E4svq0mavg5pgHBkziCNXnEkd6Nmdmm4uLDTwpF57es,1209
2
+ TEM_comms/buffer.py,sha256=Jr6fUIbUPreQSSGKWR7jkA1McyZZv3lVE8uQSER8VL4,123
3
+ TEM_comms/camera.py,sha256=L9ebaZra-M3g571PUzQCAuC92Auw4ox3gRceJ2uKRhs,522
4
+ TEM_comms/montage.py,sha256=PCfve__0M3S2RSmBtrDRlDlmIW_qJffDRE8gnlEHoxY,281
5
+ TEM_comms/scope.py,sha256=CxpmTTBm6YMevPr3LeK9A7e8v5lGU6taG4e647asvak,503
6
+ TEM_comms/ui.py,sha256=8a3GxCjw7E52WcAgDZLlQ7S4L92w5GuhJK2V_tEdSSA,1055
7
+ TEM_comms/stage/__init__.py,sha256=UVtYKzMBI01FUADS24xSItNIjhqdZtlDeJdqsDJNVIc,67
8
+ TEM_comms/stage/aperture.py,sha256=LEIlUUbkUMAI-OYQnO4tqJTblCNPitwjcxSzZLFaliM,220
9
+ TEM_comms/stage/motion.py,sha256=hhTXTX-ED8o76oDtjluGJOzLcWfDmG0LEAt44Pfk4gI,230
10
+ TEM_comms/stage/rotation.py,sha256=J7tAIP2nskjInhZmdIbqwrvxTFXihEynVOAyxbDDfjU,262
11
+ TEM_comms/tile/__init__.py,sha256=_AyiilFCIA7Z6R7K0tgpwordMMGY0Y6kX2R9snATgTE,496
12
+ TEM_comms/tile/statistics.py,sha256=big7ydZe18RaT_B_sh1ust7MiGITOZ1aJdH7mY9T2BY,307
13
+ pigeon_tem_comms-0.4.0.dist-info/LICENSE,sha256=tZfQIUX7uNGacTb751ZWInVenJl6OwYQihcGbYrKSts,1463
14
+ pigeon_tem_comms-0.4.0.dist-info/METADATA,sha256=bXJw29r7ajZzpNbLYE8OWiko3EBeVlVg8yQgq77egSM,1553
15
+ pigeon_tem_comms-0.4.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
16
+ pigeon_tem_comms-0.4.0.dist-info/entry_points.txt,sha256=X2WfBCDgfH9XVVqiI4rLu7BLyMNuLW6WWckqXxfbrgk,38
17
+ pigeon_tem_comms-0.4.0.dist-info/top_level.txt,sha256=3_1RcQ7xvS2dJEYnPIigo9snoKcSXSNJzPqunY0qydI,10
18
+ pigeon_tem_comms-0.4.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.1)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,2 @@
1
+ [pigeon.msgs]
2
+ msgs = TEM_comms:topics
@@ -1,17 +0,0 @@
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,2 +0,0 @@
1
- [pigeon.msgs]
2
- msgs = TEM_comms:msgs