Commit ad4d737268b5a1472582c54931f1115cdda71e66

Authored by Jürgen Knödlseder
1 parent 71b75d25

Add eval() method without gradient to Python interface of derived GModelSpatialRadial classes.

pyext/GModelSpatialEllipticalDisk.i
... ... @@ -76,6 +76,9 @@ public:
76 76 GModelSpatialEllipticalDisk copy() {
77 77 return (*self);
78 78 }
  79 + double eval(const GPhoton& photon) const {
  80 + return self->GModelSpatialElliptical::eval(photon);
  81 + }
79 82 double eval(const GPhoton& photon, const bool& gradients) const {
80 83 return self->GModelSpatialElliptical::eval(photon, gradients);
81 84 }
... ...
pyext/GModelSpatialEllipticalGauss.i
... ... @@ -76,6 +76,9 @@ public:
76 76 GModelSpatialEllipticalGauss copy() {
77 77 return (*self);
78 78 }
  79 + double eval(const GPhoton& photon) const {
  80 + return self->GModelSpatialElliptical::eval(photon);
  81 + }
79 82 double eval(const GPhoton& photon, const bool& gradients) const {
80 83 return self->GModelSpatialElliptical::eval(photon, gradients);
81 84 }
... ...