Skip to content

Commit

Permalink
Merge pull request #566 from lsst/tickets/DM-31359
Browse files Browse the repository at this point in the history
DM-31359: Add abs to greater-than statement in maskStreaks
  • Loading branch information
cmsaunders committed Aug 19, 2021
2 parents 7593ff3 + c4fc93c commit 686b14f
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 686b14f

Please sign in to comment.