Commit b97ac9a7 authored by Vigeesh Gangadharan's avatar 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
......@@ -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"\nWriting results to {out}" + termcolors.end, end="")
if errors==None:
print(termcolors.text + f"\nWriting 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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment