Cleaning

Cleaning Module

Functions to clean the chromaticity data.

Clean

Main functions to clean the chromaticity data.

chroma_gui.cleaning.clean.add_points(tune_x, tune_y, i, j, fp, out_tfs, data, qx_window, qy_window, quartiles, plateau_length, bad_tunes, method='bbq', raw_bbq_data=None, seconds_step=None, kernel_size=None, beam=None, output_path=None)[source]

Gets the tune from one of the defined methods and adds it to the TFS

chroma_gui.cleaning.clean.get_avg_tune_from_naff(raw_data, start_plateau, end_plateau, variables, seconds_step, qx_window, qy_window, bad_tunes)[source]

Divide the plateau in chunks of x seconds and use NAFF on it

chroma_gui.cleaning.clean.get_spectrogram(raw_data, start_plateau, end_plateau, variables, seconds_step)[source]

Divide the plateau in chunks of x seconds and apply a spectrogram on it

chroma_gui.cleaning.clean.merge_overlap(array)[source]

Merge the overlapping arrays contained in the given array

chroma_gui.cleaning.clean.tune_window(data, plane, qx, qy)[source]

Returns the tune data without the points outside the defined windows :param - qx: tuple of lower and upper bounds for Qx, e.g. (0.26, 0.28) :param - qy: tuple of lower and upper bounds for Qy

Constants

Constants for the cleaning module.

Plateau Finder

Functions to find the tune plateaus of the measurement.

chroma_gui.cleaning.plateau.create_plateau(path, timber_data, rf_beam, start_time, end_time, nominal_rf, alpha: dict)[source]

Wrapper function to get plateaus from B1 and B2 and save them

chroma_gui.cleaning.plateau.get_tunes_plateaus(timber_data, beam, rf_beam, start_time, end_time, nominal_rf, alpha)[source]

Builds a dataFrame with the tune, RF and DPP ‘chunked’ into plateaus