sncosmo.chisq

sncosmo.chisq(data, model, modelcov=False)[source]

Calculate chisq statistic for the model, given the data.

Parameters:
modelModel
dataTable or ndarray or dict

Table of photometric data. Must include certain columns. See the “Photometric Data” section of the documentation for required columns.

modelcovbool

Include model covariance? Calls model.bandfluxcov method instead of model.bandflux. The source in the model must therefore implement covariance.

Returns:
chisqfloat