pigeon-tem-comms 0.3.0__tar.gz → 0.4.0__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 (27) hide show
  1. {pigeon_tem_comms-0.3.0/pigeon_tem_comms.egg-info → pigeon_tem_comms-0.4.0}/PKG-INFO +1 -1
  2. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/__init__.py +3 -7
  3. pigeon_tem_comms-0.4.0/TEM_comms/montage.py +15 -0
  4. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/tile/__init__.py +8 -6
  5. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/tile/statistics.py +4 -0
  6. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0/pigeon_tem_comms.egg-info}/PKG-INFO +1 -1
  7. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/pigeon_tem_comms.egg-info/SOURCES.txt +1 -0
  8. pigeon_tem_comms-0.4.0/pigeon_tem_comms.egg-info/entry_points.txt +2 -0
  9. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/pyproject.toml +2 -2
  10. pigeon_tem_comms-0.3.0/pigeon_tem_comms.egg-info/entry_points.txt +0 -2
  11. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/LICENSE +0 -0
  12. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/README.md +0 -0
  13. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/buffer.py +0 -0
  14. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/camera.py +0 -0
  15. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/scope.py +0 -0
  16. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/stage/__init__.py +0 -0
  17. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/stage/aperture.py +0 -0
  18. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/stage/motion.py +0 -0
  19. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/stage/rotation.py +0 -0
  20. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/TEM_comms/ui.py +0 -0
  21. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/pigeon_tem_comms.egg-info/dependency_links.txt +0 -0
  22. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/pigeon_tem_comms.egg-info/requires.txt +0 -0
  23. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/pigeon_tem_comms.egg-info/top_level.txt +0 -0
  24. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/setup.cfg +0 -0
  25. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/tests/test_buffer.py +0 -0
  26. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/tests/test_scope_command.py +0 -0
  27. {pigeon_tem_comms-0.3.0 → pigeon_tem_comms-0.4.0}/tests/test_ui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pigeon-tem-comms
3
- Version: 0.3.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
@@ -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__)
@@ -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]
@@ -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
@@ -2,17 +2,21 @@ from pigeon import BaseMessage
2
2
 
3
3
 
4
4
  class Focus(BaseMessage):
5
+ montage_id: str
5
6
  tile_id: str
6
7
  focus: float
7
8
 
8
9
 
9
10
  class Histogram(BaseMessage):
11
+ montage_id: str
10
12
  tile_id: str
11
13
  path: str
12
14
 
13
15
 
14
16
  class MinMaxMean(BaseMessage):
17
+ montage_id: str
15
18
  tile_id: str
16
19
  min: int
17
20
  max: int
18
21
  mean: int
22
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pigeon-tem-comms
3
- Version: 0.3.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
@@ -4,6 +4,7 @@ pyproject.toml
4
4
  TEM_comms/__init__.py
5
5
  TEM_comms/buffer.py
6
6
  TEM_comms/camera.py
7
+ TEM_comms/montage.py
7
8
  TEM_comms/scope.py
8
9
  TEM_comms/ui.py
9
10
  TEM_comms/stage/__init__.py
@@ -0,0 +1,2 @@
1
+ [pigeon.msgs]
2
+ msgs = TEM_comms:topics
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pigeon-tem-comms"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  authors = [
5
5
  { name="Cameron Devine", email="cameron.devine@alleninstitute.org" },
6
6
  ]
@@ -21,7 +21,7 @@ classifiers = [
21
21
  ]
22
22
 
23
23
  [project.entry-points."pigeon.msgs"]
24
- msgs = "TEM_comms:msgs"
24
+ msgs = "TEM_comms:topics"
25
25
 
26
26
  [project.urls]
27
27
  Homepage = "https://github.com/AllenInstitute/TEM_comms"
@@ -1,2 +0,0 @@
1
- [pigeon.msgs]
2
- msgs = TEM_comms:msgs