lsst.ctrl.pool  13.0-6-gf96f8ec+26
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
lsst.ctrl.pool.parallel.BatchCmdLineTask Class Reference
Inheritance diagram for lsst.ctrl.pool.parallel.BatchCmdLineTask:
lsst.ctrl.pool.parallel.BatchParallelTask lsst.ctrl.pool.parallel.BatchPoolTask lsst.ctrl.pool.test.demoTask.DemoTask

Public Member Functions

def parseAndSubmit
 
def batchWallTime
 Return walltime request for batch job. More...
 
def batchCommand
 Return command to run CmdLineTask. More...
 
def logOperation
 Provide a context manager for logging an operation. More...
 

Detailed Description

Definition at line 417 of file parallel.py.

Member Function Documentation

def lsst.ctrl.pool.parallel.BatchCmdLineTask.batchCommand (   cls,
  args 
)

Return command to run CmdLineTask.

Parameters
cls,:Class
args,:Parsed batch job arguments (from BatchArgumentParser)

Definition at line 458 of file parallel.py.

def lsst.ctrl.pool.parallel.BatchCmdLineTask.batchWallTime (   cls,
  time,
  parsedCmd,
  numCores 
)

Return walltime request for batch job.

Subclasses should override if the walltime should be calculated differently (e.g., addition of some serial time).

Parameters
cls,:Class
time,:Requested time per iteration
parsedCmd,:Results of argument parsing
numCores,:Number of cores

Definition at line 443 of file parallel.py.

def lsst.ctrl.pool.parallel.BatchCmdLineTask.logOperation (   self,
  operation,
  catch = False,
  trace = True 
)

Provide a context manager for logging an operation.

Parameters
operation,:description of operation (string)
catch,:Catch all exceptions?
trace,:Log a traceback of caught exception?

Note that if 'catch' is True, all exceptions are swallowed, but there may be other side-effects such as undefined variables.

Definition at line 484 of file parallel.py.

def lsst.ctrl.pool.parallel.BatchCmdLineTask.parseAndSubmit (   cls,
  args = None,
  kwargs 
)

Definition at line 420 of file parallel.py.


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