pigeon-tem-comms 0.4.10__py3-none-any.whl → 0.4.11__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
@@ -1,12 +1,4 @@
1
- from . import buffer
2
- from . import camera
3
- from . import scope
4
- from . import stage
5
- from . import tile
6
- from . import ui
7
- from . import montage
8
- from . import qc
9
-
1
+ from . import buffer, camera, montage, qc, roi, scope, stage, tile, ui
10
2
 
11
3
  topics = {
12
4
  "buffer.status": buffer.Status,
@@ -36,4 +28,7 @@ topics = {
36
28
  "montage.start": montage.Start,
37
29
  "montage.finished": montage.Finished,
38
30
  "qc.status": qc.Status,
31
+ "roi.load": roi.LoadROI,
32
+ "roi.create": roi.CreateROI,
33
+ "roi.current": roi.ROI,
39
34
  }
TEM_comms/roi.py ADDED
@@ -0,0 +1,36 @@
1
+ from pigeon import BaseMessage
2
+ from typing import List, Tuple, Optional
3
+ from pydantic import Field
4
+
5
+ class Vertex(BaseMessage):
6
+ x: float
7
+ y: float
8
+
9
+ class ROI(BaseMessage):
10
+ vertices: List[Vertex]
11
+ rotation_angle: float
12
+ buffer_size: float = 0.0
13
+ montage_id: str
14
+ specimen_id: Optional[str] = None
15
+ grid_id: Optional[str] = None
16
+ section_id: Optional[str] = None
17
+ metadata: Optional[dict] = None
18
+ queue_position: Optional[int] = Field(None, description="Position in queue, None means set as current")
19
+
20
+ class LoadROI(BaseMessage):
21
+ specimen_id: str
22
+ section_id: str
23
+ grid_id: Optional[str] = None
24
+ queue_position: Optional[int] = Field(None, description="Position in queue, None means set as current")
25
+
26
+ class CreateROI(BaseMessage):
27
+ center: Vertex
28
+ width: float
29
+ height: float
30
+ rotation_angle: float = 0.0
31
+ montage_id: str
32
+ specimen_id: Optional[str] = None
33
+ grid_id: Optional[str] = None
34
+ section_id: Optional[str] = None
35
+ queue_position: Optional[int] = Field(None, description="Position in queue, None means set as current")
36
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pigeon-tem-comms
3
- Version: 0.4.10
3
+ Version: 0.4.11
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
@@ -1,8 +1,9 @@
1
- TEM_comms/__init__.py,sha256=MC7FgQrqnsNQ3i7AVU9CrJXLjNv0tGbka_LZCRrmsdI,1260
1
+ TEM_comms/__init__.py,sha256=YCjLxCTzYjlYToUwPCuUeTUWIi3yrEPb0P6h_gJJ_Po,1263
2
2
  TEM_comms/buffer.py,sha256=Jr6fUIbUPreQSSGKWR7jkA1McyZZv3lVE8uQSER8VL4,123
3
3
  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
+ TEM_comms/roi.py,sha256=RWLy9xb12cGCkvnZ9wO9kheoof0aRzg9py7sGgrT7Qo,1101
6
7
  TEM_comms/scope.py,sha256=lPEKzWT2raR6ailiAitvWXH-Xu6fxWwYBf3GPfVIizc,761
7
8
  TEM_comms/ui.py,sha256=Yxd0i4wjmddDl9sVzcFHHu5b6n0ICzaO0b_8SmAysxg,1459
8
9
  TEM_comms/stage/__init__.py,sha256=UVtYKzMBI01FUADS24xSItNIjhqdZtlDeJdqsDJNVIc,67
@@ -11,9 +12,9 @@ TEM_comms/stage/motion.py,sha256=1NSuGQvPjlxwnkaV410VGDBBtmsISQn_XjZcPuUXvQg,244
11
12
  TEM_comms/stage/rotation.py,sha256=J7tAIP2nskjInhZmdIbqwrvxTFXihEynVOAyxbDDfjU,262
12
13
  TEM_comms/tile/__init__.py,sha256=RlmgJt3ELn3PWlv1kIr0dRAgMaSaMcsy6fgtsQ3hMr0,500
13
14
  TEM_comms/tile/statistics.py,sha256=big7ydZe18RaT_B_sh1ust7MiGITOZ1aJdH7mY9T2BY,307
14
- pigeon_tem_comms-0.4.10.dist-info/LICENSE,sha256=tZfQIUX7uNGacTb751ZWInVenJl6OwYQihcGbYrKSts,1463
15
- pigeon_tem_comms-0.4.10.dist-info/METADATA,sha256=FvkJBs7WKF0zBh3jQiOcVED0zl1ufZwacz7k2ojTFcA,1554
16
- pigeon_tem_comms-0.4.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
17
- pigeon_tem_comms-0.4.10.dist-info/entry_points.txt,sha256=X2WfBCDgfH9XVVqiI4rLu7BLyMNuLW6WWckqXxfbrgk,38
18
- pigeon_tem_comms-0.4.10.dist-info/top_level.txt,sha256=3_1RcQ7xvS2dJEYnPIigo9snoKcSXSNJzPqunY0qydI,10
19
- pigeon_tem_comms-0.4.10.dist-info/RECORD,,
15
+ pigeon_tem_comms-0.4.11.dist-info/LICENSE,sha256=tZfQIUX7uNGacTb751ZWInVenJl6OwYQihcGbYrKSts,1463
16
+ pigeon_tem_comms-0.4.11.dist-info/METADATA,sha256=6PXKNAqmZAibC6lg2dK7lg2XkrHShn_B-3BqCs0GJuE,1554
17
+ pigeon_tem_comms-0.4.11.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
+ pigeon_tem_comms-0.4.11.dist-info/entry_points.txt,sha256=X2WfBCDgfH9XVVqiI4rLu7BLyMNuLW6WWckqXxfbrgk,38
19
+ pigeon_tem_comms-0.4.11.dist-info/top_level.txt,sha256=3_1RcQ7xvS2dJEYnPIigo9snoKcSXSNJzPqunY0qydI,10
20
+ pigeon_tem_comms-0.4.11.dist-info/RECORD,,