Skip to content

Commit

Permalink
Restore logging info that wasn't being logged in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DBerke committed May 18, 2023
1 parent 64ffc3d commit c6bad5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gempy/library/wavecal.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,11 @@ def get_all_input_data(ext, p, config, linelist=None, bad_bits=0,
linelist = p._get_arc_linelist(waves=m_init(np.arange(data.size)), ad=ext)
# This wants to be logged even in interactive mode
sky_or_arc = 'reference sky' if skylines else 'arc'
logit(f"Found {len(peaks)} peaks and {len(linelist)} "
f"{sky_or_arc} lines")
msg = f"Found {len(peaks)} peaks and {len(linelist)} {sky_or_arc} lines"
if config["interactive"] == True:
p.log.stdinfo(msg)
else:
logit(msg)

m_init = [m_init]
kdsigma = fwidth * abs(dw0)
Expand Down

0 comments on commit c6bad5f

Please sign in to comment.