pigeon-tem-comms 1.0.0__tar.gz → 1.1.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 (31) hide show
  1. {pigeon_tem_comms-1.0.0/pigeon_tem_comms.egg-info → pigeon_tem_comms-1.1.0}/PKG-INFO +1 -1
  2. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/camera.py +2 -3
  3. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0/pigeon_tem_comms.egg-info}/PKG-INFO +1 -1
  4. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/SOURCES.txt +1 -0
  5. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/pyproject.toml +1 -1
  6. pigeon_tem_comms-1.1.0/tests/test_camera.py +42 -0
  7. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/LICENSE +0 -0
  8. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/README.md +0 -0
  9. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/__init__.py +0 -0
  10. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/buffer.py +0 -0
  11. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/montage.py +0 -0
  12. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/qc.py +0 -0
  13. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/roi.py +0 -0
  14. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/scope.py +0 -0
  15. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/__init__.py +0 -0
  16. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/aperture.py +0 -0
  17. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/motion.py +0 -0
  18. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/rotation.py +0 -0
  19. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/tile/__init__.py +0 -0
  20. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/tile/metadata.py +0 -0
  21. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/tile/statistics.py +0 -0
  22. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/TEM_comms/ui.py +0 -0
  23. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/dependency_links.txt +0 -0
  24. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/entry_points.txt +0 -0
  25. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/requires.txt +0 -0
  26. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/top_level.txt +0 -0
  27. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/setup.cfg +0 -0
  28. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/tests/test_buffer.py +0 -0
  29. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/tests/test_qc.py +0 -0
  30. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/tests/test_scope_command.py +0 -0
  31. {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.0}/tests/test_ui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pigeon-tem-comms
3
- Version: 1.0.0
3
+ Version: 1.1.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
@@ -1,10 +1,9 @@
1
1
  from pigeon import BaseMessage
2
+ from .tile.metadata import TileMetadata
2
3
  from typing import Optional
3
4
 
4
5
 
5
- class Command(BaseMessage):
6
- tile_id: str
7
- montage_id: str
6
+ class Command(TileMetadata):
8
7
  brightfield: Optional[bool] = False
9
8
  darkfield: Optional[bool] = False
10
9
  lens_correction: Optional[bool] = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pigeon-tem-comms
3
- Version: 1.0.0
3
+ Version: 1.1.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
@@ -23,6 +23,7 @@ pigeon_tem_comms.egg-info/entry_points.txt
23
23
  pigeon_tem_comms.egg-info/requires.txt
24
24
  pigeon_tem_comms.egg-info/top_level.txt
25
25
  tests/test_buffer.py
26
+ tests/test_camera.py
26
27
  tests/test_qc.py
27
28
  tests/test_scope_command.py
28
29
  tests/test_ui.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pigeon-tem-comms"
3
- version = "1.0.0"
3
+ version = "1.1.0"
4
4
  authors = [
5
5
  { name="Cameron Devine", email="cameron.devine@alleninstitute.org" },
6
6
  ]
@@ -0,0 +1,42 @@
1
+ from TEM_comms.camera import Command
2
+ from pytest import mark
3
+
4
+
5
+ @mark.parametrize(
6
+ "data",
7
+ [
8
+ {
9
+ "montage_id": "a montage id",
10
+ "tile_id": "a tile id",
11
+ "row": 1,
12
+ "column": 2,
13
+ "overlap": 100,
14
+ },
15
+ {
16
+ "montage_id": "a montage id",
17
+ "tile_id": "a tile id",
18
+ "row": 1,
19
+ "column": 2,
20
+ "overlap": 100,
21
+ "darkfield": True,
22
+ },
23
+ {
24
+ "montage_id": "a montage id",
25
+ "tile_id": "a tile id",
26
+ "row": 1,
27
+ "column": 2,
28
+ "overlap": 100,
29
+ "brightfield": True,
30
+ },
31
+ {
32
+ "montage_id": "a montage id",
33
+ "tile_id": "a tile id",
34
+ "row": 1,
35
+ "column": 2,
36
+ "overlap": 100,
37
+ "lens_correction": False,
38
+ },
39
+ ],
40
+ )
41
+ def test_command(data):
42
+ Command(**data)