Skip to content

Commit

Permalink
Fix RickerWavelet1D integral
Browse files Browse the repository at this point in the history
Co-Authored-By: Mihai Cara <mcara@users.noreply.github.com>
  • Loading branch information
pllim and mcara committed Mar 2, 2020
1 parent 3eb8896 commit 56e9572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synphot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def integrate(self, x):
dx_max = max(x) - self.x_0
a1 = dx_min * np.exp(-0.5 * dx_min * dx_min / sig2)
a2 = dx_max * np.exp(-0.5 * dx_max * dx_max / sig2)
return -1 * self.amplitude * (a2 - a1) / sig2
return self.amplitude * (a2 - a1)


# TODO: Emit proper deprecation warning.
Expand Down

0 comments on commit 56e9572

Please # to comment.