Add Delat2D model to gammacat catalog object
@@ -148,14 +148,10 @@ class SourceCatalogObjectGammaCat(SourceCatalogObject):
pars['width'] = 0.2 * d['morph_sigma'].value
return Shell2D(**pars)
elif morph_type == 'point':
- DEFAULT_POINT_EXTENSION = Angle('0.05 deg')
pars['amplitude'] = flux.to('cm-2 s-1').value
- pars['x_mean'] = glon.value
- pars['y_mean'] = glat.value
- pars['x_stddev'] = DEFAULT_POINT_EXTENSION
- pars['y_stddev'] = DEFAULT_POINT_EXTENSION
- # TODO: make Delta2D work and use it here.
- return Gaussian2D(**pars)
+ pars['x_0'] = glon.value
+ pars['y_0'] = glat.value
+ return Delta2D(**pars)
elif morph_type == 'none':
raise NoDataAvailableError('No spatial model available: {}'.format(self.name))
else:
