Skip to content

Commit 6c61688

Browse files
FedericoBerlfeinrmjarvis
authored andcommitted
Change absolute value inside function
1 parent 6e37e4a commit 6c61688

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

galsim/chromatic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,8 +1902,8 @@ def sed(self):
19021902
if hasattr(self._jac, '__call__'):
19031903
@np.vectorize
19041904
def detjac(w):
1905-
return np.linalg.det(np.asarray(self._jac(w)).reshape(2,2))
1906-
sed *= np.abs(detjac)
1905+
return np.abs(np.linalg.det(np.asarray(self._jac(w)).reshape(2,2)))
1906+
sed *= detjac
19071907
elif self._jac is not None:
19081908
sed *= np.abs(np.linalg.det(np.asarray(self._jac).reshape(2,2)))
19091909

0 commit comments

Comments
 (0)