write_all

gammapy.image.models.write_all(filename='results.json')[source]

Dump source, fit results and conf results to a JSON file.

http://www.astropython.org/snippet/2010/7/Save-sherpa-fit-and-conf-results-to-a-JSON-file