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
70342181
Commit
70342181
authored
Feb 21, 2023
by
Wei Shoulin
Browse files
get fits header
parent
7c3a3f05
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dfs_commons/utils/fits.py
View file @
70342181
...
@@ -16,6 +16,8 @@ def get_header_value(key: str, headers, default_value = None):
...
@@ -16,6 +16,8 @@ def get_header_value(key: str, headers, default_value = None):
return
ret_value
.
strip
()
return
ret_value
.
strip
()
if
ret_value
is
None
:
if
ret_value
is
None
:
return
default_value
return
default_value
else
:
return
ret_value
except
Exception
as
e
:
except
Exception
as
e
:
return
default_value
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