e15190.neutron_wall.time_of_flight_calibration.TimeOfFlightCalibrationReader

class e15190.neutron_wall.time_of_flight_calibration.TimeOfFlightCalibrationReader(AB, database_dir=None)

Functions

__init__(AB[, database_dir])

calculate_section_params(breakpoint_runs)

find_breakpoint_runs()

read_all_runs_params([read_error])

save([dat_path, json_path, return_paths])

save_as_dat([path, return_path])

save_as_json([path, return_path])

__init__(AB, database_dir=None)
_get_run_params(run) → Optional[pandas.core.frame.DataFrame]

Returns parameters of a given run.

Parameters

run (int) – Run number.

Returns

df – DataFrame with columns ‘bar’, ‘tof_offset’, ‘tof_offset_err’. If the run is not found or the file is incompleted (not containing all bars, 1 - 24, inclusively), then it returns None.

Return type

pd.DataFrame or None