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
f6e78c75
Commit
f6e78c75
authored
Sep 23, 2025
by
BO ZHANG
🏀
Browse files
tweaks
parent
9a64dad6
Pipeline
#10493
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_common/io.py
View file @
f6e78c75
...
...
@@ -97,8 +97,8 @@ def generate_meta(**kwargs) -> fits.Header:
else
:
raise
KeyError
(
f
"未知的meta参数:
{
k
}
"
)
# automatically set docker_image, build, and created_date
meta
[
"docker_image"
]
=
os
.
getenv
(
"PIPELINE_ID"
,
default
=
"__
docker_image
__"
)
meta
[
"build"
]
=
os
.
getenv
(
"BUILD"
,
default
=
"__
build
__"
)
meta
[
"docker_image"
]
=
os
.
getenv
(
"PIPELINE_ID"
,
default
=
"__
unset
__"
)
meta
[
"build"
]
=
os
.
getenv
(
"BUILD"
,
default
=
"__
unset
__"
)
meta
[
"prc_date"
]
=
now
()
meta
[
"data_uuid"
]
=
str
(
uuid
.
uuid4
())
# convert meta to fits header
...
...
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