fixed few typos
This commit is contained in:
		
							parent
							
								
									5e4113c2d6
								
							
						
					
					
						commit
						1bf7670ca6
					
				| 
						 | 
					@ -107,7 +107,7 @@ def getAI(poni,folder=None):
 | 
				
			||||||
    ai = pyFAI.azimuthalIntegrator.AzimuthalIntegrator(**poni)
 | 
					    ai = pyFAI.azimuthalIntegrator.AzimuthalIntegrator(**poni)
 | 
				
			||||||
  elif isinstance(poni,str):
 | 
					  elif isinstance(poni,str):
 | 
				
			||||||
    # look is file exists in cwd
 | 
					    # look is file exists in cwd
 | 
				
			||||||
    if os.path.isfilee(poni):
 | 
					    if os.path.isfile(poni):
 | 
				
			||||||
      ai = pyFAI.load(poni)
 | 
					      ai = pyFAI.load(poni)
 | 
				
			||||||
    # if file does not exist look for one with that name around
 | 
					    # if file does not exist look for one with that name around
 | 
				
			||||||
    else:
 | 
					    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
 | 
					      plt.sca(ax_img); # set figure to use for mouse interaction
 | 
				
			||||||
      center = plt.ginput()[0]
 | 
					      center = plt.ginput()[0]
 | 
				
			||||||
    print("Selected center:",center)
 | 
					    print("Selected center:",center)
 | 
				
			||||||
    ai.set_poni1(center[0]*psize)
 | 
					    ai.set_poni1(center[1]*psize)
 | 
				
			||||||
    ai.set_poni2(center[1]*psize)
 | 
					    ai.set_poni2(center[0]*psize)
 | 
				
			||||||
    q,az,i = do2d(ai,img)
 | 
					    q,az,i = do2d(ai,img)
 | 
				
			||||||
    mesh = ax_pyfai.pcolormesh(q,az,i)
 | 
					    mesh = ax_pyfai.pcolormesh(q,az,i)
 | 
				
			||||||
    mesh.set_clim( *np.percentile(i,(2,95) ) )
 | 
					    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):
 | 
					  if isinstance(norm,np.ndarray):
 | 
				
			||||||
    i = i/norm[:,np.newaxis]
 | 
					    i = i/norm[:,np.newaxis]
 | 
				
			||||||
  title = "%s %s" % (folder,basename)
 | 
					  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 and plot): plt.subplot(1,2,1)
 | 
				
			||||||
  if showTrend:
 | 
					  if showTrend:
 | 
				
			||||||
    plt.pcolormesh(np.arange(i.shape[0]),q,i.T)
 | 
					    plt.pcolormesh(np.arange(i.shape[0]),q,i.T)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue