fixed few typos

This commit is contained in:
Marco Cammarata 2017-01-27 15:38:32 +01:00
parent 5e4113c2d6
commit 1bf7670ca6
1 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ def getAI(poni,folder=None):
ai = pyFAI.azimuthalIntegrator.AzimuthalIntegrator(**poni)
elif isinstance(poni,str):
# look is file exists in cwd
if os.path.isfilee(poni):
if os.path.isfile(poni):
ai = pyFAI.load(poni)
# if file does not exist look for one with that name around
else:
@ -286,8 +286,8 @@ def find_center(img,psize=100e-6,dist=0.1,wavelength=0.8e-10,center=None,referen
plt.sca(ax_img); # set figure to use for mouse interaction
center = plt.ginput()[0]
print("Selected center:",center)
ai.set_poni1(center[0]*psize)
ai.set_poni2(center[1]*psize)
ai.set_poni1(center[1]*psize)
ai.set_poni2(center[0]*psize)
q,az,i = do2d(ai,img)
mesh = ax_pyfai.pcolormesh(q,az,i)
mesh.set_clim( *np.percentile(i,(2,95) ) )
@ -364,7 +364,7 @@ def chiAverage(folder,basename="",scale=1,norm=None,returnAll=False,plot=False,s
if isinstance(norm,np.ndarray):
i = i/norm[:,np.newaxis]
title = "%s %s" % (folder,basename)
plotdata(q,i,plot=plot,showTrend=showTrend,title=title,clim=clim)
utils.plotdata(q,i,plot=plot,showTrend=showTrend,title=title,clim=clim)
if (showTrend and plot): plt.subplot(1,2,1)
if showTrend:
plt.pcolormesh(np.arange(i.shape[0]),q,i.T)