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
9b73aea1
Commit
9b73aea1
authored
Dec 31, 2023
by
BO ZHANG
🏀
Browse files
refactor PIPELINE
parent
c7e3e571
Pipeline
#2897
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/pipeline.py
View file @
9b73aea1
...
@@ -147,7 +147,7 @@ class Pipeline:
...
@@ -147,7 +147,7 @@ class Pipeline:
def
info_header
(
self
)
->
fits
.
Header
:
def
info_header
(
self
)
->
fits
.
Header
:
"""Summarize pipeline info into a `astropy.io.fits.Header`."""
"""Summarize pipeline info into a `astropy.io.fits.Header`."""
h
=
fits
.
Header
()
h
=
fits
.
Header
()
h
.
set
(
"PIPELINE
_ID
"
,
self
.
pipeline_id
,
comment
=
"pipeline ID"
)
h
.
set
(
"PIPELINE"
,
self
.
pipeline_id
,
comment
=
"pipeline ID"
)
h
.
set
(
"BUILD"
,
self
.
build
,
comment
=
"pipeline build number"
)
h
.
set
(
"BUILD"
,
self
.
build
,
comment
=
"pipeline build number"
)
h
.
set
(
"CREATED"
,
self
.
pipeline_id
,
comment
=
"pipeline build time"
)
h
.
set
(
"CREATED"
,
self
.
pipeline_id
,
comment
=
"pipeline build time"
)
return
reformat_header
(
h
,
strip
=
False
,
comment
=
"Pipeline info"
)
return
reformat_header
(
h
,
strip
=
False
,
comment
=
"Pipeline info"
)
...
...
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