LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst.ctrl.pool.pool.Pool Class Reference
Inheritance diagram for lsst.ctrl.pool.pool.Pool:
lsst.ctrl.pool.pool.PoolWrapper lsst.ctrl.pool.pool.PoolWrapperMeta

Public Member Functions

def __getattr__ (self, name)
 
def __call__ (cls, context="default")
 

Detailed Description

Process Pool

Use this class to automatically provide 'context' to
the PoolMaster class.  If you want to call functions
that don't take a 'cache' object, use the PoolMaster
class directly, and specify context=None.

Definition at line 1205 of file pool.py.

Member Function Documentation

◆ __call__()

def lsst.ctrl.pool.pool.PoolWrapperMeta.__call__ (   cls,
  context = "default" 
)
inherited

Definition at line 1183 of file pool.py.

1183  def __call__(cls, context="default"):
1184  instance = super(PoolWrapperMeta, cls).__call__(context)
1185  pool = PoolMaster()
1186  for name in ("map", "mapNoBalance", "mapToPrevious",
1187  "reduce", "reduceNoBalance", "reduceToPrevious",
1188  "storeSet", "storeDel", "storeClear", "storeList",
1189  "cacheList", "cacheClear",):
1190  setattr(instance, name, partial(getattr(pool, name), context))
1191  return instance
1192 
1193 

◆ __getattr__()

def lsst.ctrl.pool.pool.PoolWrapper.__getattr__ (   self,
  name 
)
inherited

Definition at line 1201 of file pool.py.

1201  def __getattr__(self, name):
1202  return getattr(self._pool, name)
1203 
1204 

The documentation for this class was generated from the following file: