pigeon-tem-comms 1.0.0__tar.gz → 1.1.1__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.
- {pigeon_tem_comms-1.0.0/pigeon_tem_comms.egg-info → pigeon_tem_comms-1.1.1}/PKG-INFO +1 -1
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/__init__.py +1 -2
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/camera.py +3 -3
- pigeon_tem_comms-1.1.1/TEM_comms/montage.py +26 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/scope.py +2 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/tile/statistics.py +1 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1/pigeon_tem_comms.egg-info}/PKG-INFO +1 -1
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/SOURCES.txt +1 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pyproject.toml +1 -1
- pigeon_tem_comms-1.1.1/tests/test_camera.py +42 -0
- pigeon_tem_comms-1.0.0/TEM_comms/montage.py +0 -28
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/LICENSE +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/README.md +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/buffer.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/qc.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/roi.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/stage/__init__.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/stage/aperture.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/stage/motion.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/stage/rotation.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/tile/__init__.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/tile/metadata.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/TEM_comms/ui.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/dependency_links.txt +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/entry_points.txt +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/requires.txt +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/top_level.txt +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/setup.cfg +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/tests/test_buffer.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/tests/test_qc.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/tests/test_scope_command.py +0 -0
- {pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/tests/test_ui.py +0 -0
|
@@ -26,8 +26,7 @@ topics = {
|
|
|
26
26
|
"ui.edit": ui.Edit,
|
|
27
27
|
"ui.run": ui.Run,
|
|
28
28
|
"ui.setup": ui.Setup,
|
|
29
|
-
"montage.
|
|
30
|
-
"montage.finished": montage.Finished,
|
|
29
|
+
"montage.complete": montage.Complete,
|
|
31
30
|
"qc.status": qc.Status,
|
|
32
31
|
"roi.load": roi.LoadROI,
|
|
33
32
|
"roi.create": roi.CreateROI,
|
|
@@ -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(
|
|
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
|
|
@@ -32,3 +31,4 @@ class Status(BaseMessage):
|
|
|
32
31
|
device_name: str
|
|
33
32
|
device_model_id: int
|
|
34
33
|
device_sn: str
|
|
34
|
+
bit_depth: int
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from pigeon import BaseMessage
|
|
2
|
+
from typing import Mapping, List, Any, Optional, Tuple
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Complete(BaseMessage):
|
|
7
|
+
montage_id: str
|
|
8
|
+
tile_ids: List[str]
|
|
9
|
+
acquisition_id: str
|
|
10
|
+
start_time: datetime
|
|
11
|
+
pixel_size: float
|
|
12
|
+
rotation_angle: float
|
|
13
|
+
aperture_centroid: Tuple[int, int]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Minimap(BaseMessage):
|
|
17
|
+
image: Optional[str]
|
|
18
|
+
colorbar: str
|
|
19
|
+
min: Optional[float]
|
|
20
|
+
max: Optional[float]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Minimaps(BaseMessage):
|
|
24
|
+
montage_id: str
|
|
25
|
+
montage: Minimap
|
|
26
|
+
focus: Minimap
|
|
@@ -9,6 +9,7 @@ class Command(BaseMessage):
|
|
|
9
9
|
mag: Optional[int] = None
|
|
10
10
|
brightness: Optional[int] = None
|
|
11
11
|
beam_offset: Optional[Tuple[int, int]] = None
|
|
12
|
+
spot_size: Optional[int] = None
|
|
12
13
|
screen: Optional[Literal["up", "down"]] = None
|
|
13
14
|
|
|
14
15
|
@model_validator(mode="after")
|
|
@@ -25,4 +26,5 @@ class Status(BaseMessage):
|
|
|
25
26
|
tank_voltage: int
|
|
26
27
|
brightness: int
|
|
27
28
|
beam_offset: Tuple[int, int]
|
|
29
|
+
spot_size: int
|
|
28
30
|
screen: Literal["up", "down"] | None
|
|
@@ -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)
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from pigeon import BaseMessage
|
|
2
|
-
from typing import Mapping, List, Any, Optional
|
|
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]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class Minimap(BaseMessage):
|
|
19
|
-
image: Optional[str]
|
|
20
|
-
colorbar: str
|
|
21
|
-
min: Optional[float]
|
|
22
|
-
max: Optional[float]
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class Minimaps(BaseMessage):
|
|
26
|
-
montage_id: str
|
|
27
|
-
montage: Minimap
|
|
28
|
-
focus: Minimap
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pigeon_tem_comms-1.0.0 → pigeon_tem_comms-1.1.1}/pigeon_tem_comms.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|