firecrown.likelihood.supernova

Supernova statistic support.

Attributes

SNIA_DEFAULT_M

Classes

Supernova

A statistic representing the distance modulus for a single supernova.

Module Contents

firecrown.likelihood.supernova.SNIA_DEFAULT_M = -19.2
class firecrown.likelihood.supernova.Supernova(sacc_tracer)[source]

Bases: firecrown.likelihood.statistic.Statistic

Inheritance diagram of firecrown.likelihood.supernova.Supernova

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)[source]

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()[source]

Return the data vector; raise exception if there is none.

Returns:

The data vector.

Return type:

firecrown.data_types.DataVector