SourceModel

class gammapy.utils.modeling.SourceModel(source_name, source_type, spatial_model, spectral_model)[source]

Bases: object

TODO: having “source_type” separate, but often inferred from the spatial model is weird. -> how to improve this?

Methods Summary

from_gammacat(source)
from_xml_dict(data)
to_xml()

Methods Documentation

classmethod from_gammacat(source)[source]
classmethod from_xml_dict(data)[source]
to_xml()[source]