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/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 lower_row: Lower row index for the center finding processor.
70
- :type lower_row: int, optional
71
- :ivar lower_center_offset: Center at the lower row index.
72
- :type lower_center_offset: float, optional
73
- :ivar upper_row: Upper row index for the center finding processor.
74
- :type upper_row: int, optional
75
- :ivar upper_center_offset: Center at the upper row index.
76
- :type upper_center_offset: float, optional
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
- lower_row: Optional[conint(ge=-1)]
87
- lower_center_offset: Optional[confloat(allow_inf_nan=False)]
88
- upper_row: Optional[conint(ge=-1)]
89
- upper_center_offset: Optional[confloat(allow_inf_nan=False)]
90
- search_range: Optional[confloat(ge=0, allow_inf_nan=False)]
91
- search_step: Optional[confloat(ge=0, allow_inf_nan=False)]
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