Draft: Helper to calibrate scintillators
Closes #139
- Merge the code from @pautran into
tomo.helpers.scintillator_tilt
- Plus rework for typing and simplification
- Plus some tests
- Create a
scintillator_geometry
getter for any optics- This can be redefined if needed, but by default it returns the
scintillator_geometry
key from the yaml config
- This can be redefined if needed, but by default it returns the
- Use the
scintillator_tilt
inalignxc
- Added test coverage for
alignxc
Some commits are related to typo or bug fixes, ill also create dedicated PRs to merge them independently to the project.
Description
The scintillator geometry can be described the following way in any optics.
scintillator_geometry:
rz:
screw_distance_mm: 28.65
screw_pitch_mm: 0.25
screw_position: "top right"
orientation: -1
ry:
screw_distance_mm: 9
screw_pitch_mm: 0.25
screw_position: "bottom left"
orientation: 1
alignxc
Alignment with If the geometry description is provided, alignxc
will display such result
Vertical tilt in deg (thy): 7.588151962071096e-09
Horizontal tilt in deg (thz): 7.30439453496733e-09
For axis 'ry' (bottom left screw):
- Displacement Distance: 0.0000 mm
- No turns needed.
For axis 'rz' (top right screw):
- Displacement Distance: 0.0000 mm
- No turns needed.
Edited by Valentin Valls