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
a3b2b3c5
Commit
a3b2b3c5
authored
Sep 23, 2025
by
BO ZHANG
🏀
Browse files
tweaks
parent
439ecc4c
Pipeline
#10489
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_common/io.py
View file @
a3b2b3c5
...
...
@@ -327,7 +327,7 @@ def delete_section(
def
get_proc_info
(
**
kwargs
):
cards
=
[(
"BUILD"
,
os
.
getenv
(
"BUILD"
,
default
=
"
-
"
),
""
)]
cards
=
[(
"BUILD"
,
os
.
getenv
(
"BUILD"
,
default
=
"
__unset__
"
),
""
)]
for
k
,
v
in
kwargs
.
items
():
cards
.
append
((
k
,
v
,
""
))
header
=
fits
.
Header
(
cards
=
cards
)
...
...
tests/test_fits_header_ops.py
View file @
a3b2b3c5
...
...
@@ -129,7 +129,7 @@ class TestFitsHeaderOps(unittest.TestCase):
def
test_get_proc_info
(
self
):
proc_info
=
get_proc_info
()
self
.
assertEquals
(
proc_info
[
"BUILD"
],
"
-
"
)
self
.
assertEquals
(
proc_info
[
"BUILD"
],
"
__unset__
"
)
def
test_generate_meta
(
self
):
h
=
generate_meta
()
...
...
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