pigeon-tem-comms 0.5.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.
- {pigeon_tem_comms-0.5.0/pigeon_tem_comms.egg-info → pigeon_tem_comms-1.1.0}/PKG-INFO +3 -2
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/__init__.py +3 -1
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/camera.py +6 -3
- pigeon_tem_comms-1.1.0/TEM_comms/montage.py +28 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/motion.py +2 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/rotation.py +2 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/tile/__init__.py +1 -1
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0/pigeon_tem_comms.egg-info}/PKG-INFO +3 -2
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/SOURCES.txt +1 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/pyproject.toml +1 -1
- pigeon_tem_comms-1.1.0/tests/test_camera.py +42 -0
- pigeon_tem_comms-0.5.0/TEM_comms/montage.py +0 -15
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/LICENSE +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/README.md +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/buffer.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/qc.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/roi.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/scope.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/__init__.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/stage/aperture.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/tile/metadata.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/tile/statistics.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/TEM_comms/ui.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/dependency_links.txt +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/entry_points.txt +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/requires.txt +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/top_level.txt +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/setup.cfg +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/tests/test_buffer.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/tests/test_qc.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/tests/test_scope_command.py +0 -0
- {pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/tests/test_ui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pigeon-tem-comms
|
|
3
|
-
Version:
|
|
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
|
|
@@ -18,6 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: pigeon-client
|
|
20
20
|
Requires-Dist: pydantic
|
|
21
|
+
Dynamic: license-file
|
|
21
22
|
|
|
22
23
|
[](https://github.com/AllenInstitute/TEM_comms/actions)
|
|
23
24
|
[](https://pypi.org/project/pigeon-tem-comms/)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from . import buffer, camera, montage, qc, roi, scope, stage, tile, ui
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
topics = {
|
|
4
5
|
"buffer.status": buffer.Status,
|
|
5
6
|
"camera.command": camera.Command,
|
|
@@ -15,7 +16,7 @@ topics = {
|
|
|
15
16
|
"stage.rotation.command": stage.rotation.Command,
|
|
16
17
|
"stage.rotation.status": stage.rotation.Status,
|
|
17
18
|
"tile.preview": tile.Preview,
|
|
18
|
-
"tile.
|
|
19
|
+
"tile.mini": tile.Mini,
|
|
19
20
|
"tile.processed": tile.Processed,
|
|
20
21
|
"tile.raw": tile.Raw,
|
|
21
22
|
"tile.statistics.focus": tile.statistics.Focus,
|
|
@@ -31,4 +32,5 @@ topics = {
|
|
|
31
32
|
"roi.load": roi.LoadROI,
|
|
32
33
|
"roi.create": roi.CreateROI,
|
|
33
34
|
"roi.current": roi.ROI,
|
|
35
|
+
"montage.minimaps": montage.Minimaps,
|
|
34
36
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
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
|
-
|
|
6
|
+
class Command(TileMetadata):
|
|
7
|
+
brightfield: Optional[bool] = False
|
|
8
|
+
darkfield: Optional[bool] = False
|
|
9
|
+
lens_correction: Optional[bool] = True
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
class Image(BaseMessage):
|
|
10
13
|
tile_id: str
|
|
11
|
-
|
|
14
|
+
montage_id: str
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
class Settings(BaseMessage):
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
|
@@ -4,11 +4,13 @@ from pigeon import BaseMessage
|
|
|
4
4
|
class Command(BaseMessage):
|
|
5
5
|
x: int | None = None
|
|
6
6
|
y: int | None = None
|
|
7
|
+
z: int | None = None
|
|
7
8
|
calibrate: bool = False
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class Status(BaseMessage):
|
|
11
12
|
x: int | None
|
|
12
13
|
y: int | None
|
|
14
|
+
z: int | None
|
|
13
15
|
in_motion: bool
|
|
14
16
|
error: str = ""
|
|
@@ -4,11 +4,13 @@ from pigeon import BaseMessage
|
|
|
4
4
|
class Command(BaseMessage):
|
|
5
5
|
angle_x: float | None = None
|
|
6
6
|
angle_y: float | None = None
|
|
7
|
+
eucentric_height: float | None = None
|
|
7
8
|
calibrate: bool = False
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class Status(BaseMessage):
|
|
11
12
|
angle_x: float
|
|
12
13
|
angle_y: float
|
|
14
|
+
eucentric_height: float
|
|
13
15
|
in_motion: bool
|
|
14
16
|
error: str = ""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pigeon-tem-comms
|
|
3
|
-
Version:
|
|
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
|
|
@@ -18,6 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: pigeon-client
|
|
20
20
|
Requires-Dist: pydantic
|
|
21
|
+
Dynamic: license-file
|
|
21
22
|
|
|
22
23
|
[](https://github.com/AllenInstitute/TEM_comms/actions)
|
|
23
24
|
[](https://pypi.org/project/pigeon-tem-comms/)
|
|
@@ -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,15 +0,0 @@
|
|
|
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]
|
|
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-0.5.0 → pigeon_tem_comms-1.1.0}/pigeon_tem_comms.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pigeon_tem_comms-0.5.0 → pigeon_tem_comms-1.1.0}/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
|