ramjet.data_interface.tess_two_minute_cadence_lightcurve_metadata_manager

Code for managing the meta data of the two minute cadence TESS lightcurves.

Module Contents

Classes

TessTwoMinuteCadenceLightcurveMetadata(*args, **kwargs) A model for the TESS two minute cadence lightcurve metadatabase table.
TessTwoMinuteCadenceLightcurveMetadataManger() A class for managing the meta data of the two minute cadence TESS lightcurves.
class TessTwoMinuteCadenceLightcurveMetadata(*args, **kwargs)[source]

Bases: ramjet.data_interface.metadatabase.MetadatabaseModel

A model for the TESS two minute cadence lightcurve metadatabase table.

class Meta

Schema meta data for the model.

indexes = [[['dataset_split', 'random_order_uuid'], False], [['tic_id', 'sector'], True]]
tic_id
sector
path
dataset_split
random_order_uuid
class TessTwoMinuteCadenceLightcurveMetadataManger[source]

A class for managing the meta data of the two minute cadence TESS lightcurves.

tess_data_interface
__init__(self)[source]

Initialize self. See help(type(self)) for accurate signature.

insert_multiple_rows_from_paths_into_database(self, lightcurve_paths: List[Path], dataset_splits: List[int])[source]

Inserts sets of lightcurve paths into the table.

Parameters:
  • lightcurve_paths – The list of paths to insert.
  • dataset_splits – The dataset splits to assign to each path.
populate_sql_database(self)[source]

Populates the SQL database based on the lightcurve files.

build_table(self)[source]

Builds the SQL table.

manager