Skip to content

Commit

Permalink
Add abs to greater-than statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsaunders committed Aug 17, 2021
1 parent 8cabc10 commit 49f89dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/maskStreaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def line_search(c, dx):

factor, fmin, _, _ = scipy.optimize.brent(line_search, args=(dx,), full_output=True, tol=0.05)
x -= factor * dx
if (x[0] > 1.5 * self._rhoMax) or (iter > maxIter):
if (abs(x[0]) > 1.5 * self._rhoMax) or (iter > maxIter):
fitFailure = True
break
oldChi2 = chi2
Expand Down

0 comments on commit 49f89dd

Please sign in to comment.