Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
ad677026
Commit
ad677026
authored
Jul 15, 2025
by
BO ZHANG
🏀
Browse files
add get_proc_info
parent
4f03e35d
Pipeline
#9240
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/io.py
View file @
ad677026
...
...
@@ -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"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment