Skip to content

Commit

Permalink
add info in error message for LSF interpolations
Browse files Browse the repository at this point in the history
  • Loading branch information
ntejos committed Dec 11, 2017
1 parent 9733b8e commit 923a99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linetools/spectra/lsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def interpolate_to_wv0(self, wv0):
warnings.warn(
"LSF may result from extrapolation outside wavelength range characterized for current grating.")
else:
raise ValueError("wv0 too far outside range of defined LSFs. Perhaps you've chosen the wrong grating?")
raise ValueError("wv0={:.2f}A too far outside range of defined LSFs. Perhaps you've chosen the wrong grating?".format(wv0))
lsf_vals = np.array(lsf_vals)

# normalize
Expand Down

0 comments on commit 923a99f

Please sign in to comment.