We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e37e4a commit 6c61688Copy full SHA for 6c61688
1 file changed
galsim/chromatic.py
@@ -1902,8 +1902,8 @@ def sed(self):
1902
if hasattr(self._jac, '__call__'):
1903
@np.vectorize
1904
def detjac(w):
1905
- return np.linalg.det(np.asarray(self._jac(w)).reshape(2,2))
1906
- sed *= np.abs(detjac)
+ return np.abs(np.linalg.det(np.asarray(self._jac(w)).reshape(2,2)))
+ sed *= detjac
1907
elif self._jac is not None:
1908
sed *= np.abs(np.linalg.det(np.asarray(self._jac).reshape(2,2)))
1909
0 commit comments