Skip to content

Commit e622db4

Browse files
committed
bugfix (i'm not well)
1 parent 5b1847c commit e622db4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gempy/library/calibrator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ def __init__(self, telluric_spectra, ui_params=None):
144144
# by TelluricSpectrum (you can make the mask but it's not applied)
145145
# and it needs to be accessed by the Visualizer
146146
if ui_params is None:
147-
stellar_mask_threshold = ui_params.debug_stellar_mask_threshold
148-
stellar_mask_max_extent = ui_params.debug_stellar_mask_max_extent
149-
else:
150147
stellar_mask_threshold = 1.0
151148
stellar_mask_max_extent = 0.
149+
else:
150+
stellar_mask_threshold = ui_params.debug_stellar_mask_threshold
151+
stellar_mask_max_extent = ui_params.debug_stellar_mask_max_extent
152152
self.stellar_mask = [tspek.make_stellar_mask(
153153
threshold=stellar_mask_threshold,
154154
max_contiguous=stellar_mask_max_extent,

0 commit comments

Comments
 (0)