class TimeBasedCorrection(name='TimeBasedCorrection')[source]
calc_average(data, key)[source]
calculate_dark_field(frame, data, frames, distance)[source]
calculate_flat_field(frame, data, frames, distance)[source]
find_nearest_frames(idx_list, value)[source]

Find the index of the two entries that ‘value’ lies between in ‘idx_list’ and calculate the distance between each of them.

get_max_frames()[source]
in_range(data, flat)[source]
pre_process()[source]

This method is called immediately after base_pre_process().

process_frames(data)[source]

This method is called after the plugin has been created by the pipeline framework and forms the main processing step

Parameters

data (list(np.array)) – A list of numpy arrays for each input dataset.