Commit ad677026 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add get_proc_info

parent 4f03e35d
Pipeline #9240 failed with stage
in 0 seconds
......@@ -11,6 +11,7 @@ Modified-History:
2024-06-08, Bo Zhang, added delete_section
"""
import os
import bisect
import warnings
from copy import deepcopy
......@@ -191,3 +192,11 @@ def delete_section(
del header[i]
return header
def get_proc_info(**kwargs):
cards = [("BUILD", os.getenv("BUILD"), "")]
for k, v in kwargs.items():
cards.append((k, v, ""))
header = fits.Header(cards=cards)
return reformat_header(header, comment="PROCESSING INFORMATION")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment