Loading csst_common/io.py +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ def reformat_header(h: fits.Header, strip=True, comment=None): h_copy.remove("HISTORY", ignore_missing=True, remove_all=True) # add new comment assert len(h.cards) > 0 first_key = list(h.keys())[0] first_key = list(h_copy.keys())[0] h_copy.add_comment("=" * 72, before=first_key) h_copy.add_comment(comment, before=first_key) h_copy.add_comment("=" * 72, before=first_key) Loading Loading
csst_common/io.py +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ def reformat_header(h: fits.Header, strip=True, comment=None): h_copy.remove("HISTORY", ignore_missing=True, remove_all=True) # add new comment assert len(h.cards) > 0 first_key = list(h.keys())[0] first_key = list(h_copy.keys())[0] h_copy.add_comment("=" * 72, before=first_key) h_copy.add_comment(comment, before=first_key) h_copy.add_comment("=" * 72, before=first_key) Loading