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-dfs
csst-dfs-commons
Commits
b4cad597
Commit
b4cad597
authored
Feb 22, 2023
by
Wei Shoulin
Browse files
get fits header
parent
70342181
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_commons/utils/fits.py
View file @
b4cad597
...
...
@@ -14,10 +14,9 @@ def get_header_value(key: str, headers, default_value = None):
ret_value
=
header
[
key
]
if
type
(
ret_value
)
==
str
:
return
ret_value
.
strip
()
return
ret_value
if
ret_value
is
None
:
return
default_value
else
:
return
ret_value
except
Exception
as
e
:
return
default_value
...
...
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