Skip to content

Commit 34431dd

Browse files
committed
Increase threshold to 1% for wavelength selection
1 parent e288f3f commit 34431dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scopesim/optics/optics_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ def system_transmission(self, plot=False):
280280
# only plot range where sys_trans is larger than zero
281281
wave <<= wave_unit
282282
transval = sys_trans(wave).value
283-
wmin = np.min(wave[transval > 0])
284-
wmax = np.max(wave[transval > 0])
283+
wmin = np.min(wave[transval > 0.01])
284+
wmax = np.max(wave[transval > 0.01])
285285
wmin = wmin - 0.1 * (wmax - wmin)
286286
wmax = wmax + 0.1 * (wmax - wmin)
287287
wave = wave[(wave > wmin) * (wave < wmax)]

0 commit comments

Comments
 (0)