firecrown.likelihood.supernova ============================== .. py:module:: firecrown.likelihood.supernova .. autoapi-nested-parse:: Supernova statistics. This subpackage provides the Supernova statistic class for Type Ia supernova likelihood calculations. Classes ------- .. autoapisummary:: firecrown.likelihood.supernova.Supernova Package Contents ---------------- .. py:class:: Supernova(sacc_tracer) Bases: :py:obj:`firecrown.likelihood._base.Statistic` .. autoapi-inheritance-diagram:: firecrown.likelihood.supernova.Supernova :parts: 1 A statistic representing the distance modulus for a single supernova. This statistic that applies an additive shift M to a supernova's distance modulus. .. py:attribute:: sacc_tracer .. py:attribute:: data_vector :type: None | firecrown.data_types.DataVector :value: None .. py:attribute:: a :type: None | numpy.typing.NDArray[numpy.float64] :value: None .. py:attribute:: M .. py:method:: read(sacc_data) Read the data for this statistic from the SACC file. :param sacc_data: The data in the sacc format. .. py:method:: get_data_vector() Return the data vector; raise exception if there is none. :return: The data vector.