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
b6abe9ca
Commit
b6abe9ca
authored
Nov 12, 2025
by
BO ZHANG
🏀
Browse files
remove get_proc_info
parent
cee5dc79
Pipeline
#11191
passed with stage
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
csst_common/io.py
View file @
b6abe9ca
...
...
@@ -328,14 +328,6 @@ def delete_section(
return
header
def
get_proc_info
(
**
kwargs
):
cards
=
[(
"BUILD"
,
os
.
getenv
(
"BUILD"
,
default
=
""
),
""
)]
for
k
,
v
in
kwargs
.
items
():
cards
.
append
((
k
,
v
,
""
))
header
=
fits
.
Header
(
cards
=
cards
)
return
reformat_header
(
header
,
comment
=
"PROCESSING INFORMATION"
)
def
append_meta_to_table_hdu
(
hdu
:
fits
.
BinTableHDU
,
meta
:
dict
)
->
fits
.
BinTableHDU
:
"""Append meta information to a table HDU.
...
...
tests/test_io.py
View file @
b6abe9ca
...
...
@@ -121,10 +121,6 @@ class TestFitsHeaderOps(unittest.TestCase):
h_del
=
io
.
delete_section
(
h
,
title
=
"WCS"
)
self
.
assertEqual
(
len
(
h_del
.
cards
),
7
)
def
test_get_proc_info
(
self
):
proc_info
=
io
.
get_proc_info
()
self
.
assertEquals
(
proc_info
[
"BUILD"
],
""
)
def
test_generate_meta
(
self
):
h
=
io
.
generate_meta
()
self
.
assertIsInstance
(
h
,
dict
)
...
...
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