Changeset 3961
- Timestamp:
- May 8, 2019 6:16:01 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIctrlGUI.py ¶
r3938 r3961 5368 5368 os.path.join('~',p,'G2tutorials'))) 5369 5369 return 5370 self.tutorialPath = '.\G2tutorials' #would this work as an ultimate default? 5370 5371 else: 5371 5372 self.tutorialPath = os.path.abspath(os.path.expanduser( -
TabularUnified trunk/GSASIIddataGUI.py ¶
r3848 r3961 426 426 427 427 def GenStrainDataSizer(): 428 muMean = G2spc.MuShklMean(SGData,Amat,UseList[G2frame.hist]['Mustrain'][4])429 428 Snames = G2spc.MustrainNames(SGData) 430 429 numb = len(Snames) 431 if len(UseList[G2frame.hist]['Mustrain'][4]) < numb: 432 UseList[G2frame.hist]['Mustrain'][4] = numb*[0.0,] 433 UseList[G2frame.hist]['Mustrain'][5] = numb*[False,] 430 onumb = len(UseList[G2frame.hist]['Mustrain'][4]) 431 while onumb < numb: 432 UseList[G2frame.hist]['Mustrain'][4].append(0.0) 433 UseList[G2frame.hist]['Mustrain'][5].append(False) 434 onumb += 1 435 muMean = G2spc.MuShklMean(SGData,Amat,UseList[G2frame.hist]['Mustrain'][4]) 434 436 parms = zip(Snames,UseList[G2frame.hist]['Mustrain'][4],UseList[G2frame.hist]['Mustrain'][5],range(numb)) 435 437 dataSizer = wx.FlexGridSizer(0,6,5,5) -
TabularUnified trunk/GSASIImath.py ¶
r3945 r3961 3938 3938 3939 3939 ''' 3940 return ins['X']/cosd(pos/2.0)+ins['Y']*tand(pos/2.0)+ins ['Z']3940 return ins['X']/cosd(pos/2.0)+ins['Y']*tand(pos/2.0)+ins.get('Z',0.0) 3941 3941 3942 3942 def getCWgamDeriv(pos): -
TabularUnified trunk/GSASIIplot.py ¶
r3959 r3961 7675 7675 7676 7676 # PlotStructure initialization here 7677 global mcsaXYZ,mcsaTypes,mcsaBonds,txID,contourSet 7677 global mcsaXYZ,mcsaTypes,mcsaBonds,txID,contourSet,Zslice 7678 7678 global cell, Vol, Amat, Bmat, A4mat, B4mat 7679 7679 txID = 0 … … 8904 8904 RenderPlane(plane,color) 8905 8905 if drawingData.get('showSlice',False): 8906 global contourSet 8906 global contourSet,Zslice 8907 8907 if len(D4mapData.get('rho',[])): #preferentially select 4D map if there 8908 8908 modQ = np.array(generalData['SuperVec'][0]) … … 8926 8926 if FourD: 8927 8927 SXYZT = np.vstack((SXYZ.T,np.inner(SXYZ,modQ)+G2frame.tau)).T 8928 Z = np.reshape(map_coordinates(rho,(SXYZT%1.*rho.shape).T,order=1,mode='wrap'),(npts,npts))8928 Zslice = np.reshape(map_coordinates(rho,(SXYZT%1.*rho.shape).T,order=1,mode='wrap'),(npts,npts)) 8929 8929 else: 8930 Z = np.reshape(map_coordinates(rho,(SXYZ%1.*rho.shape).T,order=1,mode='wrap'),(npts,npts))8931 Z = np.where(Z <=Rmax,Z,Rmax)8930 Zslice = np.reshape(map_coordinates(rho,(SXYZ%1.*rho.shape).T,order=1,mode='wrap'),(npts,npts)) 8931 Z = np.where(Zslice<=Rmax,Zslice,Rmax) 8932 8932 plt.rcParams['figure.facecolor'] = (1.,1.,1.,.5) 8933 8933 oldSize = plt.rcParams['figure.figsize'] -
TabularUnified trunk/GSASIIspc.py ¶
r3848 r3961 3014 3014 if laue in ['m3','m3m']: 3015 3015 return ['S400','S220'] 3016 elif laue in ['6/m','6/mmm' ,'3m1']:3016 elif laue in ['6/m','6/mmm']: 3017 3017 return ['S400','S004','S202'] 3018 elif laue in ['31m','3' ]:3019 return ['S400','S004','S202','S 211']3018 elif laue in ['31m','3','3m1']: 3019 return ['S400','S004','S202','S301'] 3020 3020 elif laue in ['3R','3mR']: 3021 3021 return ['S400','S220','S310','S211'] … … 3102 3102 Strm.append(h**4+k**4+l**4) 3103 3103 Strm.append(3.0*((h*k)**2+(h*l)**2+(k*l)**2)) 3104 elif laue in ['6/m','6/mmm' ,'3m1']:3104 elif laue in ['6/m','6/mmm']: 3105 3105 Strm.append(h**4+k**4+2.0*k*h**3+2.0*h*k**3+3.0*(h*k)**2) 3106 3106 Strm.append(l**4) 3107 3107 Strm.append(3.0*((h*l)**2+(k*l)**2+h*k*l**2)) 3108 elif laue in ['31m','3' ]:3108 elif laue in ['31m','3','3m1']: 3109 3109 Strm.append(h**4+k**4+2.0*k*h**3+2.0*h*k**3+3.0*(h*k)**2) 3110 3110 Strm.append(l**4) 3111 3111 Strm.append(3.0*((h*l)**2+(k*l)**2+h*k*l**2)) 3112 Strm.append(4.0* h*k*l*(h+k))3112 Strm.append(4.0*l*h**3) 3113 3113 elif laue in ['3R','3mR']: 3114 3114 Strm.append(h**4+k**4+l**4) … … 3205 3205 if laue in ['m3','m3m']: 3206 3206 S0 = [1000.,1000.] 3207 elif laue in ['6/m','6/mmm' ,'3m1']:3207 elif laue in ['6/m','6/mmm']: 3208 3208 S0 = [1000.,1000.,1000.] 3209 elif laue in ['31m','3' ]:3209 elif laue in ['31m','3','3m1']: 3210 3210 S0 = [1000.,1000.,1000.,1000.] 3211 3211 elif laue in ['3R','3mR']:
Note: See TracChangeset
for help on using the changeset viewer.