- Timestamp:
- Feb 22, 2020 11:14:33 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r4324 r4325 1478 1478 for it,TTh in enumerate(TThs): 1479 1479 band.mask = ma.masked_outside(TA,TTh,TTh+dtth).mask+tam 1480 pcmax = np.percentile(band ,prob)1480 pcmax = np.percentile(band.compressed(),prob) 1481 1481 mband = ma.masked_greater(band,pcmax) 1482 mean = ma.me dian(mband)1482 mean = ma.mean(mband) 1483 1483 std = ma.std(mband) 1484 1484 anom = ma.masked_greater((band-mean)/std,esdMul) 1485 1485 mask ^= (anom.mask^band.mask) 1486 1486 if not dlg is None: 1487 dlg.Raise()1488 1487 GoOn = dlg.Update(it,newmsg='Processed 2-theta rings = %d'%(it)) 1489 1488 if not GoOn[0]: -
trunk/GSASIIimgGUI.py
r4324 r4325 1947 1947 spotSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Select n*sigma spot rejection (n=1-10): '),0,WACV) 1948 1948 spotSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,loc=data['SpotMask'], 1949 key='esdMul',min=1 ,max=10,size=(40,25)),0,WACV)1949 key='esdMul',min=1.,max=10.,size=(40,25)),0,WACV) 1950 1950 numPix = 0 1951 1951 if data['SpotMask']['spotMask'] is not None: -
trunk/GSASIIphsGUI.py
r4323 r4325 5379 5379 OutFile.close() 5380 5380 print('RMCProfile file %s read'%(pName+item)) 5381 else:5382 print('RMCProfile file %s not found'%(pName+item))5381 # else: 5382 # print('RMCProfile file %s not found'%(pName+item)) 5383 5383 #total result plots 5384 5384 Labels = {'_PDF1.csv':[r'$\mathsf{R,\AA}$','G(R)','RMCP G(R) for '], … … 5502 5502 numx,numy = odfData[:2] 5503 5503 G2plt.Plot3dXYZ(G2frame,int(numx),int(numy),odfData[2:], 5504 newPlot=False,Title='Bond %s-%s'%(bond[0],bond[1]),Centro=True) 5504 newPlot=False,Title='Bond %s-%s'%(bond[0],bond[1]),Centro=True) 5505 OutFile.close() 5505 5506 5506 5507 -
trunk/GSASIIplot.py
r4319 r4325 5233 5233 if np.any(X) and np.any(Y) and np.any(Z): 5234 5234 np.seterr(all='ignore') 5235 Plot.plot_surface(X,Y,Z,rstride=1,cstride=1,color='g',linewidth=1) 5235 try: 5236 Plot.plot_surface(X,Y,Z,rstride=1,cstride=1,color='g',linewidth=1) 5237 except: 5238 pass 5236 5239 xyzlim = np.array([Plot.get_xlim3d(),Plot.get_ylim3d(),Plot.get_zlim3d()]).T 5237 5240 XYZlim = [min(xyzlim[0]),max(xyzlim[1])]
Note: See TracChangeset
for help on using the changeset viewer.