gammapy.spectrum
gammapy.spectrum.
check_chi2
Execute this function after fitting to see if the best-fit chi2 reported matches the formula coded here