pigeon-tem-comms 0.4.9__tar.gz → 0.4.11__tar.gz

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.
Files changed (29) hide show
  1. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/PKG-INFO +1 -1
  2. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/__init__.py +4 -9
  3. pigeon_tem_comms-0.4.11/TEM_comms/roi.py +36 -0
  4. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pigeon_tem_comms.egg-info/PKG-INFO +1 -1
  5. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pigeon_tem_comms.egg-info/SOURCES.txt +1 -0
  6. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pyproject.toml +1 -1
  7. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/LICENSE +0 -0
  8. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/README.md +0 -0
  9. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/buffer.py +0 -0
  10. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/camera.py +0 -0
  11. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/montage.py +0 -0
  12. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/qc.py +0 -0
  13. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/scope.py +0 -0
  14. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/stage/__init__.py +0 -0
  15. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/stage/aperture.py +0 -0
  16. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/stage/motion.py +0 -0
  17. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/stage/rotation.py +0 -0
  18. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/tile/__init__.py +0 -0
  19. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/tile/statistics.py +0 -0
  20. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/TEM_comms/ui.py +0 -0
  21. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pigeon_tem_comms.egg-info/dependency_links.txt +0 -0
  22. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pigeon_tem_comms.egg-info/entry_points.txt +0 -0
  23. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pigeon_tem_comms.egg-info/requires.txt +0 -0
  24. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/pigeon_tem_comms.egg-info/top_level.txt +0 -0
  25. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/setup.cfg +0 -0
  26. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/tests/test_buffer.py +0 -0
  27. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/tests/test_qc.py +0 -0
  28. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/tests/test_scope_command.py +0 -0
  29. {pigeon_tem_comms-0.4.9 → pigeon_tem_comms-0.4.11}/tests/test_ui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pigeon-tem-comms
3
- Version: 0.4.9
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,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
  }
@@ -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.9
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
@@ -6,6 +6,7 @@ TEM_comms/buffer.py
6
6
  TEM_comms/camera.py
7
7
  TEM_comms/montage.py
8
8
  TEM_comms/qc.py
9
+ TEM_comms/roi.py
9
10
  TEM_comms/scope.py
10
11
  TEM_comms/ui.py
11
12
  TEM_comms/stage/__init__.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pigeon-tem-comms"
3
- version = "0.4.9"
3
+ version = "0.4.11"
4
4
  authors = [
5
5
  { name="Cameron Devine", email="cameron.devine@alleninstitute.org" },
6
6
  ]