Catalogue (taurex.mixin catalogue classes)

Reader classes for CSV/TSV catalogue files.

class CatalogueReader[source]

Bases: Loggable

Base class for catalogue readers.

load_planet_list()[source]

Load the list of available planets (optional).

class FileReader(filename=None, target_no=0, target_name=None)[source]

Bases: CatalogueReader

Parses a CSV catalogue file and returns star/planet parameters.

Parameters:
  • filename (str) – Path to the CSV file.

  • target_no (int, optional) – Row index to read (default 0).

  • target_name (str or None, optional) – Planet name to look up (overrides target_no).

load_target_list(filename)[source]

Parse the CSV and return (star_params, planet_params) lists.

fetch_exomast_properties(planet_name: str) → dict[source]

Return planet and stellar properties for planet_name from ExoMAST.

The ExoMAST API resolves the planet name to an exoplanetID first and then serves one row per catalogue. The NExScI row is preferred because it is the reference catalogue; any other row is used as a fallback.

Catalogue planet mixins

class PlanetCatalogueFile(**kwargs)[source]

Bases: PlanetMixin

Planet mixin that populates parameters from a local CSV/TSV file.

>>> from taurex.mixin import enhance_class
>>> from taurex.planet import Planet
>>> from taurex.mixin import PlanetCatalogueFile
>>> PlanetF = enhance_class(Planet, PlanetCatalogueFile,
...                         catalogue_file="targets.csv")
classmethod input_keywords()[source]

Return the class factory keyword.

class PlanetCatalogueExomast(**kwargs)[source]

Bases: PlanetMixin

Planet mixin that populates parameters from the ExoMAST API.

>>> from taurex.mixin import enhance_class
>>> from taurex.planet import Planet
>>> from taurex.mixin import PlanetCatalogueExomast
>>> PlanetE = enhance_class(Planet, PlanetCatalogueExomast,
...                         planet_name="WASP-121 b")
classmethod input_keywords()[source]

Return the class factory keyword.

Catalogue star mixins

class StarCatalogueFile(**kwargs)[source]

Bases: StarMixin

Star mixin that populates parameters from a local CSV/TSV file.

>>> from taurex.mixin import enhance_class
>>> from taurex.stellar import BlackbodyStar
>>> from taurex.mixin import StarCatalogueFile
>>> StarF = enhance_class(BlackbodyStar, StarCatalogueFile,
...                       catalogue_file="targets.csv")
classmethod input_keywords()[source]

Return the class factory keyword.

class StarCatalogueExomast(**kwargs)[source]

Bases: StarMixin

Star mixin that populates parameters from the ExoMAST API.

>>> from taurex.mixin import enhance_class
>>> from taurex.stellar import BlackbodyStar
>>> from taurex.mixin import StarCatalogueExomast
>>> StarE = enhance_class(BlackbodyStar, StarCatalogueExomast,
...                       planet_name="WASP-121 b")
classmethod input_keywords()[source]

Return the class factory keyword.