TOI#
- class stellarphot.io.TOI(*, tic_id: int, coord: Annotated[SkyCoord, AstropyValidator], depth_ppt: float, depth_error_ppt: float, duration: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)], duration_error: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)], epoch: Annotated[Time, AstropyValidator], epoch_error: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)], period: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)], period_error: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)], tess_mag: float, tess_mag_error: float)[source]#
Bases:
BaseModelRepresent a TOI from the ExoFOP database.
- Parameters:
- tic_idint
The TIC ID of the target.
- coord
astropy.coordinates.SkyCoord The coordinates of the target.
- depth_pptfloat
The depth of the transit in parts per thousand.
- depth_error_pptfloat
The error in the depth of the transit in parts per thousand.
- duration
astropy.units.Quantity The duration of the transit; must have units of time.
- duration_error
astropy.units.Quantity The error in the duration of the transit; must have units of time.
- epoch
astropy.time.Time The epoch of the transit.
- epoch_error
astropy.units.Quantity The error in the epoch of the transit; must have units of time.
- period
astropy.units.Quantity The period of the transit; must have units of time.
- period_error
astropy.units.Quantity The error in the period of the transit; must have units of time.
- tess_magfloat
The TESS magnitude of the target.
- tess_mag_errorfloat
The error in the TESS magnitude of the target.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].Methods Summary
from_tic_id(tic_id)Create a TOI object from a numerical TIC ID number.
transit_time_for_observation(obs_times)Calculate the transit time for a set of observation times.
Attributes Documentation
- model_config = {'extra': 'forbid', 'validate_assignment': True, 'validate_default': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- classmethod from_tic_id(tic_id)[source]#
Create a TOI object from a numerical TIC ID number. This will be obtained from ExoFOP-TESS and the TESS Input Catalog (TIC) at MAST.
- transit_time_for_observation(obs_times)[source]#
Calculate the transit time for a set of observation times.
- Parameters:
- obs_times
astropy.time.Time The times of the observations.
- obs_times
- Returns:
astropy.time.TimeThe transit times for the observations.