Skip to content

Commit

Permalink
Add comment about commentary cards check
Browse files Browse the repository at this point in the history
  • Loading branch information
vandalt committed Nov 3, 2021
1 parent 036ff56 commit 940c83d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amical/mf_pipeline/bispect.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,8 @@ def _add_infos_header(infos, hdr, mf, pa, filename, maskname, npix):
infos["maskname"] = maskname
infos["isz"] = npix

# Raise a warning that old astropy version drop commentary cards, but only if
# there are any in the original header
hdr_commentary_keys = fits.Card._commentary_keywords
if any(hck in hdr for hck in hdr_commentary_keys) and (
ASTROPY_VERSION < Version("5.0rc")
Expand Down

0 comments on commit 940c83d

Please sign in to comment.