Changeset 514


Ignore:
Timestamp:
Mar 6, 2012 11:01:57 AM (12 years ago)
Author:
toby
Message:

fix mp.Pool creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MPbranch/GSASIIstruct.py

    r512 r514  
    23382338
    23392339def getPowderProfile(parmDict,x,varylist,Histogram,Phases,calcControls,pawleyLookup):               
    2340     mpPool = mp.Pool()
     2340    if (calcControls['max Hprocess'] <= 1 and calcControls['max Rprocess'] > 1:
     2341        mpPool = mp.Pool()
    23412342    hId = Histogram['hId']
    23422343    hfx = ':%d:'%(hId)
     
    26032604       
    26042605def getPowderProfileDerv(parmDict,x,varylist,Histogram,Phases,calcControls,pawleyLookup):   
     2606    if (calcControls['max Hprocess'] <= 1 and calcControls['max Rprocess'] > 1:
     2607        mpPool = mp.Pool()
    26052608    # create a list of dependent variables and set up a dictionary to hold their derivatives
    26062609    dependentVars = G2mv.GetDependentVars()
     
    26802683                     Phase,calcControls,wave,G,g,GB,A,
    26812684                     parmDict,pfx,phfx,hfx,Ka2,lamRatio,kRatio))
    2682             mpPool = mp.Pool()
    26832685            for res in mpPool.imap_unordered(ComputeReflectionDerivative,argList):
    26842686                if res is None: continue
Note: See TracChangeset for help on using the changeset viewer.