pigeon-tem-comms 0.4.0__tar.gz → 0.4.2__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 (28) hide show
  1. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/PKG-INFO +1 -1
  2. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/__init__.py +2 -0
  3. pigeon_tem_comms-0.4.2/TEM_comms/qc.py +6 -0
  4. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/scope.py +9 -4
  5. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pigeon_tem_comms.egg-info/PKG-INFO +1 -1
  6. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pigeon_tem_comms.egg-info/SOURCES.txt +2 -0
  7. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pyproject.toml +1 -1
  8. pigeon_tem_comms-0.4.2/tests/test_qc.py +8 -0
  9. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/LICENSE +0 -0
  10. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/README.md +0 -0
  11. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/buffer.py +0 -0
  12. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/camera.py +0 -0
  13. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/montage.py +0 -0
  14. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/stage/__init__.py +0 -0
  15. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/stage/aperture.py +0 -0
  16. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/stage/motion.py +0 -0
  17. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/stage/rotation.py +0 -0
  18. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/tile/__init__.py +0 -0
  19. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/tile/statistics.py +0 -0
  20. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/TEM_comms/ui.py +0 -0
  21. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pigeon_tem_comms.egg-info/dependency_links.txt +0 -0
  22. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pigeon_tem_comms.egg-info/entry_points.txt +0 -0
  23. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pigeon_tem_comms.egg-info/requires.txt +0 -0
  24. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/pigeon_tem_comms.egg-info/top_level.txt +0 -0
  25. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/setup.cfg +0 -0
  26. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/tests/test_buffer.py +0 -0
  27. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/tests/test_scope_command.py +0 -0
  28. {pigeon_tem_comms-0.4.0 → pigeon_tem_comms-0.4.2}/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.4.0
3
+ Version: 0.4.2
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
@@ -5,6 +5,7 @@ from . import stage
5
5
  from . import tile
6
6
  from . import ui
7
7
  from . import montage
8
+ from . import qc
8
9
 
9
10
 
10
11
  topics = {
@@ -34,4 +35,5 @@ topics = {
34
35
  "ui.setup": ui.Setup,
35
36
  "montage.start": montage.Start,
36
37
  "montage.finished": montage.Finished,
38
+ "qc.status": qc.Status,
37
39
  }
@@ -0,0 +1,6 @@
1
+ from pigeon import BaseMessage
2
+ from typing import Literal
3
+
4
+
5
+ class Status(BaseMessage):
6
+ state: Literal["GOOD", "STOP_AT_END", "STOP_NOW"]
@@ -1,12 +1,15 @@
1
1
  from pigeon import BaseMessage
2
- from typing import Literal
2
+ from typing import Literal, Optional, Tuple
3
3
  from pydantic import model_validator
4
4
 
5
5
 
6
6
  class Command(BaseMessage):
7
- focus: int | None = None
8
- mag_mode: Literal["LM", "MAG1", "MAG2"] | None = None
9
- mag: int | None = None
7
+ focus: Optional[int] = None
8
+ mag_mode: Optional[Literal["LM", "MAG1", "MAG2"]] = None
9
+ mag: Optional[int] = None
10
+ brightness: Optional[int] = None
11
+ beam_offset: Optional[Tuple[int, int]] = None
12
+ screen: Optional[Literal["up", "down"]] = None
10
13
 
11
14
  @model_validator(mode="after")
12
15
  def check_mag(self):
@@ -20,3 +23,5 @@ class Status(BaseMessage):
20
23
  mag_mode: str
21
24
  mag: int
22
25
  tank_voltage: int
26
+ brightness: int
27
+ beam_offset: Tuple[int, int]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pigeon-tem-comms
3
- Version: 0.4.0
3
+ Version: 0.4.2
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
@@ -5,6 +5,7 @@ TEM_comms/__init__.py
5
5
  TEM_comms/buffer.py
6
6
  TEM_comms/camera.py
7
7
  TEM_comms/montage.py
8
+ TEM_comms/qc.py
8
9
  TEM_comms/scope.py
9
10
  TEM_comms/ui.py
10
11
  TEM_comms/stage/__init__.py
@@ -20,5 +21,6 @@ pigeon_tem_comms.egg-info/entry_points.txt
20
21
  pigeon_tem_comms.egg-info/requires.txt
21
22
  pigeon_tem_comms.egg-info/top_level.txt
22
23
  tests/test_buffer.py
24
+ tests/test_qc.py
23
25
  tests/test_scope_command.py
24
26
  tests/test_ui.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pigeon-tem-comms"
3
- version = "0.4.0"
3
+ version = "0.4.2"
4
4
  authors = [
5
5
  { name="Cameron Devine", email="cameron.devine@alleninstitute.org" },
6
6
  ]
@@ -0,0 +1,8 @@
1
+ from TEM_comms.qc import Status
2
+ from pydantic import ValidationError
3
+ import pytest
4
+
5
+
6
+ def test_bad_status():
7
+ with pytest.raises(ValidationError):
8
+ Status(state="BAD")