ChessAnalysisPipeline 0.0.11__py3-none-any.whl → 0.0.13__py3-none-any.whl
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.
Potentially problematic release.
This version of ChessAnalysisPipeline might be problematic. Click here for more details.
- CHAP/__init__.py +2 -0
- CHAP/common/__init__.py +6 -2
- CHAP/common/models/map.py +217 -70
- CHAP/common/processor.py +249 -155
- CHAP/common/reader.py +175 -130
- CHAP/common/writer.py +150 -94
- CHAP/edd/models.py +458 -262
- CHAP/edd/processor.py +614 -354
- CHAP/edd/utils.py +746 -235
- CHAP/tomo/models.py +22 -18
- CHAP/tomo/processor.py +1215 -892
- CHAP/utils/fit.py +211 -127
- CHAP/utils/general.py +789 -610
- CHAP/utils/parfile.py +1 -9
- CHAP/utils/scanparsers.py +101 -52
- {ChessAnalysisPipeline-0.0.11.dist-info → ChessAnalysisPipeline-0.0.13.dist-info}/METADATA +1 -1
- {ChessAnalysisPipeline-0.0.11.dist-info → ChessAnalysisPipeline-0.0.13.dist-info}/RECORD +21 -21
- {ChessAnalysisPipeline-0.0.11.dist-info → ChessAnalysisPipeline-0.0.13.dist-info}/WHEEL +1 -1
- {ChessAnalysisPipeline-0.0.11.dist-info → ChessAnalysisPipeline-0.0.13.dist-info}/LICENSE +0 -0
- {ChessAnalysisPipeline-0.0.11.dist-info → ChessAnalysisPipeline-0.0.13.dist-info}/entry_points.txt +0 -0
- {ChessAnalysisPipeline-0.0.11.dist-info → ChessAnalysisPipeline-0.0.13.dist-info}/top_level.txt +0 -0
CHAP/tomo/models.py
CHANGED
|
@@ -14,12 +14,11 @@ from pydantic import (
|
|
|
14
14
|
constr,
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
# Local modules
|
|
18
|
-
from CHAP.common.models.map import SpecScans
|
|
19
|
-
|
|
20
17
|
class Detector(BaseModel):
|
|
21
18
|
"""
|
|
22
19
|
Detector class to represent the detector used in the experiment.
|
|
20
|
+
The image origin is assumed to be in the top-left corner, with
|
|
21
|
+
rows down (-z in lab frame) and columns sideways (+x in lab frame).
|
|
23
22
|
|
|
24
23
|
:ivar prefix: Prefix of the detector in the SPEC file.
|
|
25
24
|
:type prefix: str
|
|
@@ -47,7 +46,8 @@ class TomoReduceConfig(BaseModel):
|
|
|
47
46
|
Class representing the configuration for the tomography image
|
|
48
47
|
reduction processor.
|
|
49
48
|
|
|
50
|
-
:ivar img_row_bounds: Detector image bounds in the row-direction
|
|
49
|
+
:ivar img_row_bounds: Detector image bounds in the row-direction
|
|
50
|
+
(ignored for id1a3 and id3a).
|
|
51
51
|
:type img_row_bounds: list[int], optional
|
|
52
52
|
:ivar delta_theta: Rotation angle increment in image reduction
|
|
53
53
|
in degrees.
|
|
@@ -66,14 +66,17 @@ class TomoFindCenterConfig(BaseModel):
|
|
|
66
66
|
:ivar center_stack_index: Stack index of the tomography set to find
|
|
67
67
|
the center axis.
|
|
68
68
|
:type center_stack_index: int, optional
|
|
69
|
-
:ivar
|
|
70
|
-
:type
|
|
71
|
-
:ivar
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
:
|
|
75
|
-
|
|
76
|
-
:type
|
|
69
|
+
:ivar center_rows: Row indices for the center finding processor.
|
|
70
|
+
:type center_rows: list[int, int], optional
|
|
71
|
+
:ivar center_offsets: Centers at the center finding row indices in
|
|
72
|
+
pixels.
|
|
73
|
+
:type center_offsets: list[float, float], optional
|
|
74
|
+
:ivar center_offset_min: Minimum value of center_offset in center
|
|
75
|
+
axis finding search in pixels.
|
|
76
|
+
:type center_offset_min: float, optional
|
|
77
|
+
:ivar center_offset_max: Maximum value of center_offset in center
|
|
78
|
+
axis finding search in pixels.
|
|
79
|
+
:type center_offset_max: float, optional
|
|
77
80
|
:ivar gaussian_sigma: Standard deviation for the Gaussian filter
|
|
78
81
|
applied to image reconstruction visualizations, defaults to no
|
|
79
82
|
filtering performed.
|
|
@@ -83,12 +86,13 @@ class TomoFindCenterConfig(BaseModel):
|
|
|
83
86
|
:type ring_width: float, optional
|
|
84
87
|
"""
|
|
85
88
|
center_stack_index: Optional[conint(ge=0)]
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
center_rows: Optional[conlist(
|
|
90
|
+
item_type=conint(ge=0), min_items=2, max_items=2)]
|
|
91
|
+
center_offsets: Optional[conlist(
|
|
92
|
+
item_type=confloat(allow_inf_nan=False),
|
|
93
|
+
min_items=2, max_items=2)]
|
|
94
|
+
center_offset_min: Optional[confloat(allow_inf_nan=False)]
|
|
95
|
+
center_offset_max: Optional[confloat(allow_inf_nan=False)]
|
|
92
96
|
gaussian_sigma: Optional[confloat(ge=0, allow_inf_nan=False)]
|
|
93
97
|
ring_width: Optional[confloat(ge=0, allow_inf_nan=False)]
|
|
94
98
|
|