firecrown.likelihood.supernova
Supernova statistics.
This subpackage provides the Supernova statistic class for Type Ia supernova likelihood calculations.
Classes
A statistic representing the distance modulus for a single supernova. |
Package Contents
- class firecrown.likelihood.supernova.Supernova(sacc_tracer)
Bases:
firecrown.likelihood._base.Statistic
A statistic representing the distance modulus for a single supernova.
This statistic that applies an additive shift M to a supernova’s distance modulus.
- Parameters:
sacc_tracer (str)
- sacc_tracer
- data_vector: None | firecrown.data_types.DataVector = None
- a: None | numpy.typing.NDArray[numpy.float64] = None
- M
- read(sacc_data)
Read the data for this statistic from the SACC file.
- Parameters:
sacc_data (sacc.Sacc) – The data in the sacc format.
- Return type:
None
- get_data_vector()
Return the data vector; raise exception if there is none.
- Returns:
The data vector.
- Return type: