Skip to content

Commit 99a48ec

Browse files
authored
Merge pull request #408 from European-XFEL/feat/detectordata
Add DetectorData API
2 parents 1dbf021 + 8767ba3 commit 99a48ec

14 files changed

Lines changed: 3937 additions & 1239 deletions

docs/calibration.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Calibration constants
22

33
The `extra.calibration` module helps you to find & load detector calibration
4-
constants stored in the [Calibration Catalog](https://in.xfel.eu/calibration/).
4+
data stored in the [Calibration Catalog](https://in.xfel.eu/calibration/).
5+
This is used for most imaging detectors in use at European XFEL to record
6+
and track datasets called calibration constants derived from characterization
7+
measurements and used for data corrections.
58

69
To find constants by conditions for a particular point in time, create a
710
condition object for the relevant detector type and use
@@ -69,6 +72,20 @@ agipd_cd.display_markdown_table()
6972

7073
::: extra.calibration.ShimadzuHPVX2Conditions
7174

75+
## Detectors and modules
76+
77+
Calibration data is associated with physical detector units (PDUs), with an actual
78+
detector consisting of one or more of these PDUs then generally called modules. PDUs
79+
can freely move between detectors of the same type in a process called mapping, and
80+
take their calibration data alongside with them.
81+
82+
This is automatically taken into account when using the `CalibrationData` APIs described
83+
here, but you can also obtain the detector metadata and mapping information explicitly:
84+
85+
::: extra.calibration.DetectorData
86+
87+
::: extra.calibration.DetectorModule
88+
7289
## Bad pixel values
7390

7491
The calibration pipeline produces masks along with corrected data, in keys

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
Added:
2020

2121
- [AGIPDConditions][extra.calibration.AGIPDConditions] now recognizes current source constant types
22+
- [DetectorData][extra.calibration.DetectorData] to obtain detector metadata and
23+
module mapping from the Calibration Cataloge (!408).
2224
- [SpectrometerCalibration][extra.gui.jupyter.SpectrometerCalibration] to
2325
provide a Jupyter widget for energy calibration of 2D X-ray spectrum data
2426
(!363).

0 commit comments

Comments
 (0)