Files
Jungfraujoch/docs/python_client/docs/DetectorModulePlacement.md
leonarski_f 3f8c72cd1e
Build Packages / build:portable:windows-x86_64:cuda (push) Successful in 28m9s
Build Packages / Generate python client (push) Successful in 31s
Build Packages / Validation Battery (push) Successful in 47m56s
Build Packages / build:jfjoch:ubuntu2404:nocuda (push) Successful in 26m51s
Build Packages / build:rugnux:linux-aarch64:cuda (push) Successful in 10m33s
Build Packages / build:jfjoch:ubuntu2204:nocuda (push) Successful in 26m49s
Build Packages / build:jfjoch:rocky8:cuda (push) Successful in 30m10s
Build Packages / build:jfjoch:rocky8:nocuda (push) Successful in 32m0s
Build Packages / build:jfjoch:rocky9:nocuda (push) Successful in 32m49s
Build Packages / Create release (push) Successful in 8s
Build Packages / build:portable:linux-x86_64:nocuda (push) Successful in 16m57s
Build Packages / Build documentation (push) Successful in 47s
Build Packages / build:portable:macos-arm64:nocuda (push) Successful in 5m7s
Build Packages / build:jfjoch:rocky8:cuda-sls9 (push) Successful in 29m33s
Build Packages / build:portable:linux-x86_64:cuda (push) Successful in 21m36s
Build Packages / build:portable:windows-x86_64:nocuda (push) Successful in 24m26s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 30m56s
Build Packages / build:jfjoch:rocky9:cuda-sls9 (push) Successful in 32m3s
Build Packages / build:jfjoch:rocky9:cuda (push) Successful in 30m50s
Build Packages / build:jfjoch:ubuntu2404:cuda (push) Successful in 28m52s
Build Packages / build:jfjoch:ubuntu2204:cuda (push) Successful in 25m22s
Build Packages / Unit tests (push) Successful in 1h44m43s
v1.0.0-rc.182 (#93)
* Rugnux: Fixed indexing of stills of a centred lattice with a known cell.
* jfjoch_broker (experimental): Live Rugnux processing of serial collections.
* Rugnux: Stills detector modules are placed from the data and written to `<prefix>_module_placement.json`; `--panel-refine` replaces `--refine-modules`.
* Rugnux: More reliable rotation processing - indexing, monoclinic setting, space-group choice and refinement of multi-domain twins.

Reviewed-on: #93
Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
2026-11-04 11:13:33 +01:00

2.8 KiB

DetectorModulePlacement

One module of the image and where it lies on the detector plane, as rugnux measures it. Frame: custom_geometry is BEFORE mirror_y (the image as assembled from the readout); module_placement is AFTER mirror_y (the image as stored, the only one a file reader sees). Same words in both: x0/y0 is the image position of the module's readout pixel 0 and fast_axis/slow_axis say which way its fast and slow readout axes run in the image. With mirror_y on, a module's entry differs between the two by the mirror: for an image of height H, y0 (module_placement) = H - 1 - y0 (custom_geometry), x0 is the same, and Yp and Yn swap in fast_axis/slow_axis. With mirror_y off they are equal. x0, y0, fast_axis and slow_axis identify the module, whatever the order of the entries, and with the module size they give its box in the image. The plane is in image pixels (a pixel's centre at its index): readout pixel (i, j) - i along the fast axis, j along the slow axis from pixel 0 - lies on it at (x0_plane, y0_plane) + i fast_step + j slow_step. As assembled: x0_plane = x0, y0_plane = y0, and each step is the unit vector of its axis (Xp = [1, 0], Xn = [-1, 0], Yp = [0, 1], Yn = [0, -1]).

Properties

Name Type Description Notes
x0 int Image x of the module's readout pixel 0, after mirror_y
y0 int Image y of the module's readout pixel 0, after mirror_y
fast_axis DetectorModuleDirection
slow_axis DetectorModuleDirection
x0_plane float Plane x of readout pixel 0, in image pixels
y0_plane float Plane y of readout pixel 0, in image pixels
fast_step List[float] Plane displacement (x, y) for one pixel along the fast readout axis
slow_step List[float] Plane displacement (x, y) for one pixel along the slow readout axis

Example

from jfjoch_client.models.detector_module_placement import DetectorModulePlacement

# TODO update the JSON string below
json = "{}"
# create an instance of DetectorModulePlacement from a JSON string
detector_module_placement_instance = DetectorModulePlacement.from_json(json)
# print the JSON string representation of the object
print(DetectorModulePlacement.to_json())

# convert the object into a dict
detector_module_placement_dict = detector_module_placement_instance.to_dict()
# create an instance of DetectorModulePlacement from a dict
detector_module_placement_from_dict = DetectorModulePlacement.from_dict(detector_module_placement_dict)

[Back to Model list] [Back to API list] [Back to README]