Changeset 3095 for trunk/GSASIIstrMath.py
- Timestamp:
- Sep 21, 2017 2:42:50 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrMath.py
r3093 r3095 2929 2929 Multiprocessing support added 2930 2930 ''' 2931 if GSASIIpath.GetConfigValue(' debug'):2931 if GSASIIpath.GetConfigValue('Show_timing',False): 2932 2932 starttime = time.time() #; print 'start GetFobsSq' 2933 2933 histoList = Histograms.keys() … … 3060 3060 Histogram = Histograms[histogram] 3061 3061 Histogram['Residuals']['hId'] = Histograms[histogram]['hId'] 3062 if GSASIIpath.GetConfigValue(' debug'):3062 if GSASIIpath.GetConfigValue('Show_timing',False): 3063 3063 print 'GetFobsSq t=',time.time()-starttime 3064 3064 3065 3065 def getPowderProfile(parmDict,x,varylist,Histogram,Phases,calcControls,pawleyLookup): 3066 3066 'Computes the powder pattern for a histogram based on contributions from all used phases' 3067 if GSASIIpath.GetConfigValue(' debug'): starttime = time.time()3067 if GSASIIpath.GetConfigValue('Show_timing',False): starttime = time.time() 3068 3068 3069 3069 def GetReflSigGamCW(refl,im,wave,G,GB,phfx,calcControls,parmDict): … … 3248 3248 if badPeak: 3249 3249 print 'ouch #4 bad profile coefficients yield negative peak width; some reflections skipped' 3250 if GSASIIpath.GetConfigValue(' debug'):3250 if GSASIIpath.GetConfigValue('Show_timing',False): 3251 3251 print 'getPowderProfile t=',time.time()-starttime 3252 3252 return yc,yb … … 4132 4132 xF = np.searchsorted(x,Limits[1])+1 4133 4133 useMP,ncores = G2mp.InitMP() 4134 if GSASIIpath.GetConfigValue(' debug'): starttime = time.time()4134 if GSASIIpath.GetConfigValue('Show_timing',False): starttime = time.time() 4135 4135 if useMP: 4136 4136 MPpool = mp.Pool(ncores) … … 4153 4153 # varylist,Histogram,Phases,rigidbodyDict,calcControls,pawleyLookup,dependentVars) 4154 4154 G2mv.Dict2Deriv(varylist,depDerivDict,dMdvh) 4155 if GSASIIpath.GetConfigValue(' debug'): print 'getPowderProfileDerv t=',time.time()-starttime4155 if GSASIIpath.GetConfigValue('Show_timing',False): print 'getPowderProfileDerv t=',time.time()-starttime 4156 4156 Wt = ma.sqrt(W[xB:xF])[nxs,:] 4157 4157 Dy = dy[xB:xF][nxs,:]
Note: See TracChangeset
for help on using the changeset viewer.