Add dummy SpatialModel and Gaussian2D classes
@@ -6,23 +6,38 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from collections import OrderedDict
import numpy as np
from astropy.modeling import Parameter, ModelDefinitionError, Fittable2DModel
-from astropy.modeling.models import Gaussian2D
+from astropy.modeling.models import Gaussian2D as AstropyGaussian2D
from astropy.utils import lazyproperty
from astropy.coordinates import SkyCoord
from ..core import SkyImage
__all__ = [
'morph_types',
+ 'SpatialModel',
'Delta2D',
- # TODO: we need our own model, so that we can add in stuff like XML I/O
- # Copy over the Astropy version and use that throughout Gammapy
- # 'Gaussian2D',
+ 'Gaussian2D',
'Shell2D',
'Sphere2D',
'Template2D',
]
+class SpatialModel(object):
+ """Spatial model base class.
+
+ TODO: implement properly. At the moment this is just a placeholder
+ """
+
+
+class Gaussian2D(AstropyGaussian2D):
+ """Two-dimensional Gaussian model.
+
+ TODO: implement properly. At the moment this is just an empty subclass of the Astropy model.
+ """
+ # TODO: we need our own model, so that we can add in stuff like XML I/O
+ # Copy over the Astropy version and use that throughout Gammapy
+
+
class Delta2D(Fittable2DModel):
"""Two dimensional delta function .
