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-sims
csst_cpic_sim
Commits
182d69af
Commit
182d69af
authored
May 08, 2025
by
GZhao
Browse files
pep8 again
parent
385a9b87
Pipeline
#8269
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/io.py
View file @
182d69af
...
...
@@ -117,7 +117,7 @@ def check_and_update_fits_header(header):
header
[
keyword
]
=
(
header
[
keyword
],
dm_comment
[
keyword
])
if
has_unexpected_keywords
and
has_all_keywords
:
# if there is no other keywords, then use the default header model
for
header_key
,
model_key
in
zip
(
header
.
keys
(),
dm_comment
.
keys
()):
for
header_key
,
model_key
in
zip
(
header
.
keys
(),
dm_comment
.
keys
()):
if
header_key
!=
model_key
:
print_warning
(
f
"Keyword
{
header_key
}
not correspond to
{
model_key
}
"
)
...
...
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