e15190.neutron_wall.position_calibration.NWCalibrationReader¶
- class e15190.neutron_wall.position_calibration.NWCalibrationReader(AB, force_find_breakpoints=False)¶
Functions
__init__(AB[, force_find_breakpoints])find_calibration_breakpoints([save_to_database])Use Change Point Detection "CPD" algorithm from ruptures to identify where calibration parameters have shifted.
- __init__(AB, force_find_breakpoints=False)¶
- find_calibration_breakpoints(save_to_database=True)¶
Use Change Point Detection “CPD” algorithm from ruptures to identify where calibration parameters have shifted.
- Parameters
save_to_database – bool, default True If True, save all the results into JSON and DAT files; if False, nothing will be saved to files. Default is True.
- Returns
A dictionary of breakpoints with keys being bar numbers. The values are lists of dictionaries, each of which has two keys, namely, run_range and parameters.