Slide 48
Slide 48 text
!21
4a. Proper documentation format
Sphinx reads in a very specific format for your documentation.
class Source(object):
”””A single source observed by TESS.
Parameters
----------
tic : int, optional
The TIC ID of the source.
gaia : int, optional
The GAIA DR2 source_id.
coords : tuple, astropy.coordinates.SkyCoord
The (RA, Dec) coords of the obj.
Attributes
----------
tess_mag : float
The TESS magnitude from the TIC.
“””
def __init__(self, tic=None, gaia=None, coords=None):
self.tic = tic
self.gaia = gaia
self.coords = coords