firecrown.likelihood.supernova ============================== .. py:module:: firecrown.likelihood.supernova .. autoapi-nested-parse:: Supernova statistic support. Attributes ---------- .. autoapisummary:: firecrown.likelihood.supernova.SNIA_DEFAULT_M Classes ------- .. autoapisummary:: firecrown.likelihood.supernova.Supernova Module Contents --------------- .. py:data:: SNIA_DEFAULT_M :value: -19.2 .. py:class:: Supernova(sacc_tracer) Bases: :py:obj:`firecrown.likelihood.statistic.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.