Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sdc
GRIS Gregor Infrared Spectrograph
grisinv
Commits
b97ac9a7
Commit
b97ac9a7
authored
Apr 19, 2021
by
Vigeesh Gangadharan
Browse files
Merge branch 'develop' into 'master'
remove duplicate messages in fits write See merge request sdc/grisinv!11
parents
f54c8514
968e97dd
Pipeline
#1341
passed with stage
in 2 minutes and 31 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
grisinv/invert.py
View file @
b97ac9a7
...
...
@@ -547,7 +547,8 @@ def write_stokes_fits(stokes_data, header, diagnose):
def
write_fits
(
data
,
header
,
out
,
errors
=
None
):
"""Write output to the requested fits file."""
print
(
termcolors
.
text
+
f
"
\n
Writing results to
{
out
}
"
+
termcolors
.
end
,
end
=
""
)
if
errors
==
None
:
print
(
termcolors
.
text
+
f
"
\n
Writing results to
{
out
}
"
+
termcolors
.
end
,
end
=
""
)
# header.comments['NAXIS1'] = 'Length of data axis 1'
# header.comments['NAXIS1'] = 'Length of data axis 2'
...
...
@@ -585,7 +586,8 @@ def write_fits(data, header, out, errors=None):
out
,
overwrite
=
True
,
output_verify
=
"silentfix+exception"
,
checksum
=
True
)
print
(
termcolors
.
text
+
". "
+
termcolors
.
okay
+
"Done.
\n
"
+
termcolors
.
end
)
if
errors
==
None
:
print
(
termcolors
.
text
+
". "
+
termcolors
.
okay
+
"Done.
\n
"
+
termcolors
.
end
)
if
errors
!=
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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