ramjet.data_interface.tess_target_metadata_manager

Code for managing the metadata of the TESS targets.

Module Contents

Classes

TessTargetMetadata(*args, **kwargs) A model for the TESS target metadatabase table.
TessTargetMetadataManger() A class for managing the metadata of TESS targets.
class TessTargetMetadata(*args, **kwargs)[source]

Bases: ramjet.data_interface.metadatabase.MetadatabaseModel

A model for the TESS target metadatabase table.

tic_id
dataset_split
class TessTargetMetadataManger[source]

A class for managing the metadata of TESS targets.

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 targets into the table from lightcurve paths.

Parameters:
  • lightcurve_paths – The list of paths to insert.
  • dataset_splits – The dataset splits to assign to each path.
Returns:

The number of rows inserted.

populate_sql_database(self)[source]

Populates the SQL database based on the lightcurve files.

build_table(self)[source]

Builds the SQL table.

manager