doFolder was not saving error bars in chi files

This commit is contained in:
Marco Cammarata 2017-03-09 23:20:15 +01:00
parent 5a050bb5a3
commit 18430895ad
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ def doFolder(folder,files='*.edf*',nQ = 1500,force=False,mask=None,dark=10,norm=
err[ifname] = e err[ifname] = e
if saveChi: if saveChi:
chi_fname = utils.removeExt(fname) + ".chi" chi_fname = utils.removeExt(fname) + ".chi"
utils.saveTxt(chi_fname,q,i,e,info=ai_as_str(ai),overwrite=True) utils.saveTxt(chi_fname,q,np.vstack((i,e)),info=ai_as_str(ai),overwrite=True)
files = [ utils.getBasename(f) for f in files ] files = [ utils.getBasename(f) for f in files ]
files = np.asarray(files) files = np.asarray(files)