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.