CONAN._classes.load_lightcurves.mask_points#

CONAN._classes.load_lightcurves.mask_points(lc_list=None, condition="lc['col0']<lc['col0'][10]", show_plot=False, verbose=True)#

Function to mask points in the lightcurves based on a condition. These points are removed from the injested data

Parameters:
  • lc_list (list of string, None, 'all';) – list of lightcurve filenames on which to mask points. Default is ‘all’ which masks all lightcurves in the object.

  • condition (str, list of str, None;) – The condition is a string that can be evaluated as a python boolean expression based on any column of the lc e.g. “lc[‘col1’]>1.0002” will mask points where flux is greater than 1.0002. The condition can be a combination of columns and logical operators e.g. “(lc[‘col1’]>1.0002) & (lc[‘col0’]<lc[‘col0’][10])” will mask points where flux is greater than 1.0002 and time is less than the 10th time point. Default is None which does nothing.

  • show_plot (bool;) – set True to plot the data and show masked points.

  • verbose (bool;) – Prints number of points that have been masked. Default is True

_masked_points#

set to True if data has been masked. Default is False

Type:

bool;