components.py¶
This module contains definitions of the science payload components. Functions that turn blast database scheme into a flat science payload to be served through the API.
- api.components.aperture_component(transient_name) List[DataModelComponent] [source]¶
Apeture model component defined what transient information is in the science payload.
- Parameters:
transient_name (str) – name of the transient.
- Returns:
- data model component to be added
to the blast science payload.
- Return type:
component (List[DataModelComponent])
- api.components.host_component(transient_name) List[DataModelComponent] [source]¶
Host model component defined what transient information is in the science payload.
- Parameters:
transient_name (str) – name of the transient.
- Returns:
- data model component to be added
to the blast science payload.
- Return type:
component (List[DataModelComponent])
- api.components.photometry_component(transient_name) List[DataModelComponent] [source]¶
Photometry model component defined what transient information is in the science payload.
- Parameters:
transient_name (str) – name of the transient.
- Returns:
- data model component to be added
to the blast science payload.
- Return type:
component (List[DataModelComponent])
- api.components.sed_fit_component(transient_name: str) List[DataModelComponent] [source]¶
SED fit component which defines what is in the blast science payload.
- Parameters:
transient_name (str) – name of the transient.
- Returns:
- data model component to be added
to the blast science payload.
- Return type:
component (List[DataModelComponent])
- api.components.transient_component(transient_name) List[DataModelComponent] [source]¶
Transient model component defined what transient information is in the science payload.
- Parameters:
transient_name (str) – name of the transient.
- Returns:
- data model component to be added
to the blast science payload.
- Return type:
component (List[DataModelComponent])