Skip to content

Commit

Permalink
allow empty wavecal_element
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Aug 31, 2021
1 parent ebdc3ac commit 37f3808
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyreduce/instruments/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,10 @@ def add_header_info(self, header, mode, **kwargs):
header["e_obslat"] = get("latitude")
header["e_obsalt"] = get("altitude")

header["HIERARCH e_wavecal_element"] = get(
"wavecal_element", info.get("wavecal_element", None)
)
if info.get("wavecal_element", None) is not None:
header["HIERARCH e_wavecal_element"] = get(
"wavecal_element", info.get("wavecal_element", None)
)
return header

def find_files(self, input_dir):
Expand Down

0 comments on commit 37f3808

Please sign in to comment.