pygcam.mcs.worker¶
This module provides support for running an MCS trial on an ipython parallel cluster’s engine.
API¶
- class pygcam.mcs.worker.Worker(context, argDict)¶
Defines the methods and data associated with a worker task.
- runTrial()¶
Run a single trial on the current engine using the local Worker.
- Returns
(WorkerResult) holds run identification info and completion status
- class pygcam.mcs.worker.WorkerResult(mapper, context, errorMsg)¶
Encapsulates the results returned from a worker task.
- pygcam.mcs.worker.runTrial(context, argDict)¶
Remotely-callable function providing an interface to the Worker class.
- Parameters
context – (McsContext) information describing the run
argDict – (dict) with bool values for keys ‘runLocal’, ‘noGCAM’, ‘noBatchQueries’, and ‘noPostProcessor’
- Returns
(WorkerResult) run identification info and completion status