ramjet.photometric_database.yu_lightcurve_database

Code to represent the database of TESS transit data based on disposition tables. This database is based on the disposition source data is given by Liang Yu’s work.

Module Contents

class YuLightcurveDatabase(data_directory='data/tess_yu')[source]

Bases: ramjet.photometric_database.tess_transit_lightcurve_label_per_time_step_database.TransitLightcurveLabelPerTimeStepDatabase

A class to represent the database of TESS transit data based on disposition tables.

__init__(self, data_directory='data/tess_yu')[source]
generate_datasets(self)[source]

Generates the training and validation datasets.

Returns:The training and validation datasets.
is_positive(self, example_path)[source]

Checks if an example contains a transit event or not.

Parameters:example_path – The path to the example to check.
Returns:Whether or not the example contains a transit event.
obtain_meta_data_frame_for_available_lightcurves(self)[source]

Gets the available meta disposition data from Liang Yu’s work and combines it with the available lightcurve data, throwing out any data that doesn’t have its counterpart.

Returns:The meta data frame containing the lightcurve paths and meta data needed to generate labels.
download_liang_yu_database(self)[source]

Downloads the database used in Liang Yu’s work.

generate_label(self, example_path: str, times: np.float32)[source]

Generates a label for each time step defining whether or not a transit is occurring.

Parameters:
  • example_path – The path of the lightcurve file (to determine which row of the meta data to use).
  • times – The times of the measurements in the lightcurve.
Returns:

A boolean label for each time step specifying if transiting is occurring at that time step.