daxs.correctors: Measurement Correctors#
Classes to deal with different types of measurement correctors.
- exception daxs.correctors.ConcentrationCorrectionError(message: str)[source]#
Bases:
Exception- args#
- with_traceback()#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class daxs.correctors.SimpleConcentrationCorrector(scans: Scan | Scans | list[Scan])[source]#
Bases:
CorrectorClass to perform simple, length-based, concentration corrections.
- class daxs.correctors.DataDrivenConcentrationCorrector(scans: Scan | Scans | list[Scan], data_mappings: dict[str, str])[source]#
Bases:
CorrectorClass to perform concentration corrections using data from specified mappings.
- __init__(scans: Scan | Scans | list[Scan], data_mappings: dict[str, str])[source]#
Initialize the data-driven concentration corrector.
- Parameters:
scans – Scans used for concentration correction.
data_mappings – Mappings between scan attributes and paths in the raw data.
- property conc_corr_points: ndarray[tuple[int, ...], dtype[float64]]#
Array of points used to determine the concentration correction indices.
- Returns:
Array of points used for concentration correction.
- Raises:
ValueError – If the concentration correction counters do not have the same length.
- find_conc_corr_indices(scan: Scan) list[int][source]#
Determine the indices of the concentration correction data for the scan.
- Parameters:
scan – Scan for which the concentration correction data need to be found.
- Returns:
Indices of the concentration correction data for the points in the scan.