Changeset 1978 for trunk/GSASIImath.py
- Timestamp:
- Sep 24, 2015 4:34:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r1977 r1978 35 35 import scipy.optimize as so 36 36 import pypowder as pwd 37 if GSASIIpath.GetConfigValue('debug'): 38 import pylab as pl 37 39 38 40 sind = lambda x: np.sin(x*np.pi/180.) … … 939 941 nf = 0 940 942 nx = 0 941 XmodZ = 0942 FmodZ = 0943 XmodZ = np.zeros((Ax.shape[0],Ax.shape[1],3,32)) 944 FmodZ = np.zeros((Af.shape[0],Af.shape[1],32)) 943 945 if 'Crenel' in waveTypes: 946 nC = np.where('Crenel' in waveTypes) 944 947 nf = 1 945 FmodC = 0 #replace948 #FmodZ = 0 replace 946 949 else: 947 950 nx = 1 948 951 if 'Sawtooth' in waveTypes: 949 XmodZ = 0 #replace 950 else: 951 XmodZ = 0 #replace (use?) 952 nS = np.where('Sawtooth' in waveTypes) 953 #XmodZ = 0 replace 952 954 if Af.shape[1]: 953 955 tauF = np.arange(1.,Af.shape[1]+1-nf)[:,nxs]*glTau #Fwaves x 32 954 FmodA = Af[:,nf:,nxs]*np.sin(twopi*tauF[nxs,:,:]) 956 FmodA = Af[:,nf:,nxs]*np.sin(twopi*tauF[nxs,:,:]) #atoms X Fwaves X 32 955 957 FmodB = Bf[:,nf:,nxs]*np.cos(twopi*tauF[nxs,:,:]) 956 Fmod = np.sum(FmodA+FmodB+FmodC,axis=1) 958 Fmod = np.sum(FmodA+FmodB+FmodC,axis=1) #atoms X 32; sum waves 957 959 else: 958 960 Fmod = 1.0
Note: See TracChangeset
for help on using the changeset viewer.