Skip to content

Commit

Permalink
Merge pull request #64 from tronsgaard/tronsgaard-patch-1
Browse files Browse the repository at this point in the history
Avoid duplicating primary header when extension=0
  • Loading branch information
AWehrhahn authored Jul 28, 2023
2 parents 74e6f44 + 68e6bef commit 9c986e1
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 9c986e1

Please sign in to comment.