Skip to content

Commit

Permalink
Avoid duplicating primary header when when extension=0
Browse files Browse the repository at this point in the history
  • Loading branch information
tronsgaard authored Jun 22, 2023
1 parent 8e176c6 commit 68e6bef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyreduce/instruments/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def load_fits(
extension = self.get_extension(h_prime, mode)

header = hdu[extension].header
header.extend(h_prime, strip=False)
if extension != 0:
header.extend(h_prime, strip=False)
header = self.add_header_info(header, mode)
header["e_input"] = (os.path.basename(fname), "Original input filename")

Expand Down

0 comments on commit 68e6bef

Please sign in to comment.