run_test_for_contaminant

tessilator.tessilator.run_test_for_contaminant(XY_arr, file_in, con_table, d_target)[source]

Run the periodogram analyses for neighbouring contaminants if required.

Parameters:
XY_arrlist, size=2

The X and Y positions of the contaminant (the output form the “find_XY_cont” function).

file_instr

The name of the fits file containing the contaminant.

con_tableastropy.table.Table

A single row from the contamination table which has details of the flux contribution.

d_targetdict

The dictionary returned from the periodogram analysis of the target star (the output from the “run_LS” function in the lc_analysis.py module)

Returns:
labels_contstr (a, b, c or d)

A single character which assess if the calculated period for the target could actually come from the contaminant.