Skip to content

Commit

Permalink
Small tidying of code to use fewer lines
Browse files Browse the repository at this point in the history
  • Loading branch information
DBerke committed May 18, 2023
1 parent c6bad5f commit 60180b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gempy/library/wavecal.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,7 @@ def get_all_input_data(ext, p, config, linelist=None, bad_bits=0,
# This wants to be logged even in interactive mode
sky_or_arc = 'reference sky' if skylines else 'arc'
msg = f"Found {len(peaks)} peaks and {len(linelist)} {sky_or_arc} lines"
if config["interactive"] == True:
p.log.stdinfo(msg)
else:
logit(msg)
p.log.stdinfo(msg) if config["interactive"] == True else logit(msg)

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

0 comments on commit 60180b3

Please sign in to comment.