Changeset 800


Ignore:
Timestamp:
06/23/15 10:15:38 (11 months ago)
Author:
mmckerns
Message:

updated to use pathos.pools

Location:
branches/UQ/legacy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/UQ/legacy/MM_OUQ_StAlData.py

    r776 r800  
    3636####################################################################### 
    3737def optimize(cost,_bounds,_constraints): 
    38   from pathos.multiprocessing import ProcessingPool as Pool 
     38  from pathos.pools import ProcessPool as Pool 
    3939  from mystic.solvers import DifferentialEvolutionSolver2 
    4040  from mystic.termination import ChangeOverGeneration as COG 
  • branches/UQ/legacy/envelope/Driver_BoLiSurr_Cy.py

    r776 r800  
    4343  # with multiprocessing  
    4444##nodes = 7 #len(runs) 
    45 ##from pathos.multiprocessing import ProcessingPool as Pool 
     45##from pathos.pool import ProcessPool as Pool 
    4646##results = Pool(nodes).map(looper, runs) 
    4747  # with MPI 
  • branches/UQ/legacy/envelope/Looper_BoLiSurr_Cy.py

    r776 r800  
    7676  solver.SetConstraints(_constraints) 
    7777 #ALTERNATE: multiprocessing map of cost function 
    78 ##from pathos.multiprocessing import ProcessingPool as Pool 
     78##from pathos.pools import ProcessPool as Pool 
    7979##solver.SetMapper(Pool().map) 
    8080 #ALTERNATE: MPI map of cost function 
     
    384384  # with multiprocessing  
    385385##nodes = 7 #len(runs) 
    386 ##from pathos.multiprocessing import ProcessingPool as Pool 
     386##from pathos.pools import ProcessPool as Pool 
    387387##results = Pool(nodes).map(looper, runs) 
    388388 
  • branches/UQ/legacy/envelope/envelope.py

    r776 r800  
    236236  # with multiprocessing  
    237237# nodes = 4 #len(runs) 
    238 # from pathos.multiprocessing import ProcessingPool as Pool 
     238# from pathos.pool import ProcessPool as Pool 
    239239# results = Pool(nodes).map(model_sausage, runs) 
    240240  # with MPI 
Note: See TracChangeset for help on using the changeset viewer.