Commit 6fae0b71 authored by Jean-Eric Campagne's avatar Jean-Eric Campagne
Browse files

change output ASCII format

parent d34f91e8
......@@ -53,9 +53,10 @@ def FitPolar(data, src, polar):
xclean, yclean, _ = Clean(freq, data[:,i])
rc, fcenter, deg, coeff, res, iqrn = FitPolynomial(xclean,yclean)
polarIdx = i+1
info = np.array([polarIdx])
info = np.append(info,[fcenter])
info = np.array('Phi'+str(polarIdx)+polar)
info = np.append(info,'Polynome')
info = np.append(info,[deg])
info = np.append(info,[fcenter])
info = np.append(info,coeff)
infos_list.append(info)
......@@ -120,7 +121,7 @@ def main():
filename = 'PhaseParam-'+src+'-'+polar+'.txt'
with open(filename,"w") as f:
f.write("\n".join(" ".join(map(str,x)) for x in infos))
plt.savefig(src+'-'+polar+'-fit.pdf',bbox_inches = 'tight')
plt.savefig(src+'-'+polar+'-fit.png',bbox_inches = 'tight')
###########################
......
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