Skip to content

Commit

Permalink
Bounds on Instrument.calcEffDefocalOffset() to avoid bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcrenshaw committed Apr 19, 2024
1 parent 408d941 commit 7e890ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lsst/ts/wep/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,10 @@ def dZ4det(offset):
)[4]

# Calculate the equivalent detector offset
result = minimize_scalar(lambda offset: np.abs(dZ4det(offset) - dZ4optic))
result = minimize_scalar(
lambda offset: np.abs(dZ4det(offset) - dZ4optic),
bounds=[-0.1, 0.1],
)

return np.abs(result.x)

Expand Down

0 comments on commit 7e890ef

Please sign in to comment.