LSSTApplications
17.0+1,17.0+10,17.0+16,17.0+17,17.0+2,17.0+21,17.0+3,17.0+4,17.0-1-g377950a+9,17.0.1-1-g444bd44+9,17.0.1-1-g46e6382+10,17.0.1-1-g4d4fbc4+4,17.0.1-1-g703d48b+6,17.0.1-1-g8de6c91,17.0.1-1-g9deacb5+9,17.0.1-1-gf4e0155+10,17.0.1-1-gfc65f5f+9,17.0.1-1-gfc6fb1f+5,17.0.1-2-g3bdf598,17.0.1-2-g3e5d191+1,17.0.1-2-ga5d6a7c+4,17.0.1-2-gd73ec07+10,17.0.1-3-gcbbb95d+5,17.0.1-3-geaa4c8a+4,17.0.1-4-g088434c+4,17.0.1-4-ga7077188,17.0.1-4-gf25f8e6,17.0.1-5-g5a10bbc+1,17.0.1-5-gf0ac6446+12,17.0.1-6-g7bb9714,17.0.1-7-g69836a1+10,17.0.1-7-gf7766dbc3,w.2019.13
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | prepareForMultiProcessing (self) |
def | run (self, parsedCmd) |
def | makeTask (self, parsedCmd=None, args=None) |
def | precall (self, parsedCmd) |
def | __call__ (self, args) |
def | runTask (self, task, dataRef, kwargs) |
Static Public Member Functions | |
def | getTargetList (parsedCmd, kwargs) |
Public Attributes | |
TaskClass | |
doReturnResults | |
config | |
log | |
doRaise | |
clobberConfig | |
doBackup | |
numProcesses | |
timeout | |
Static Public Attributes | |
int | TIMEOUT = 3600*24*30 |
Provide the image and catalog names to the Task We provide a dummy dataRef only to avoid further overrides of this class.
Definition at line 52 of file debugger.py.
|
inherited |
Run the Task on a single target. Parameters ---------- args Arguments for Task.runDataRef() Returns ------- struct : `lsst.pipe.base.Struct` Contains these fields if ``doReturnResults`` is `True`: - ``dataRef``: the provided data reference. - ``metadata``: task metadata after execution of run. - ``result``: result returned by task run, or `None` if the task fails. - ``exitStatus``: 0 if the task completed successfully, 1 otherwise. If ``doReturnResults`` is `False` the struct contains: - ``exitStatus``: 0 if the task completed successfully, 1 otherwise. Notes ----- This default implementation assumes that the ``args`` is a tuple containing a data reference and a dict of keyword arguments. .. warning:: If you override this method and wish to return something when ``doReturnResults`` is `False`, then it must be picklable to support multiprocessing and it should be small enough that pickling and unpickling do not add excessive overhead.
Definition at line 341 of file cmdLineTask.py.
|
static |
Definition at line 59 of file debugger.py.
|
inherited |
Create a Task instance. Parameters ---------- parsedCmd Parsed command-line options (used for extra task args by some task runners). args Args tuple passed to `TaskRunner.__call__` (used for extra task arguments by some task runners). Notes ----- ``makeTask`` can be called with either the ``parsedCmd`` argument or ``args`` argument set to None, but it must construct identical Task instances in either case. Subclasses may ignore this method entirely if they reimplement both `TaskRunner.precall` and `TaskRunner.__call__`.
Definition at line 282 of file cmdLineTask.py.
|
inherited |
Hook for code that should run exactly once, before multiprocessing. Notes ----- Must return True if `TaskRunner.__call__` should subsequently be called. .. warning:: Implementations must take care to ensure that no unpicklable attributes are added to the TaskRunner itself, for compatibility with multiprocessing. The default implementation writes package versions, schemas and configs, or compares them to existing files on disk if present.
Definition at line 312 of file cmdLineTask.py.
|
inherited |
Prepare this instance for multiprocessing Optional non-picklable elements are removed. This is only called if the task is run under multiprocessing.
Definition at line 174 of file cmdLineTask.py.
|
inherited |
Run the task on all targets. Parameters ---------- parsedCmd : `argparse.Namespace` Parsed command `argparse.Namespace`. Returns ------- resultList : `list` A list of results returned by `TaskRunner.__call__`, or an empty list if `TaskRunner.__call__` is not called (e.g. if `TaskRunner.precall` returns `False`). See `TaskRunner.__call__` for details. Notes ----- The task is run under multiprocessing if `TaskRunner.numProcesses` is more than 1; otherwise processing is serial.
Definition at line 183 of file cmdLineTask.py.
|
inherited |
Make the actual call to `runDataRef` for this task. Parameters ---------- task : `lsst.pipe.base.CmdLineTask` class The class of the task to run. dataRef Butler data reference that contains the data the task will process. kwargs Any additional keyword arguments. See `TaskRunner.getTargetList` above. Notes ----- The default implementation of `TaskRunner.runTask` works for any command-line task which has a runDataRef method that takes a data reference and an optional set of additional keyword arguments. This method returns the results generated by the task's `runDataRef` method.
Definition at line 428 of file cmdLineTask.py.
|
inherited |
Definition at line 161 of file cmdLineTask.py.
|
inherited |
Definition at line 158 of file cmdLineTask.py.
|
inherited |
Definition at line 162 of file cmdLineTask.py.
|
inherited |
Definition at line 160 of file cmdLineTask.py.
|
inherited |
Definition at line 157 of file cmdLineTask.py.
|
inherited |
Definition at line 159 of file cmdLineTask.py.
|
inherited |
Definition at line 163 of file cmdLineTask.py.
|
inherited |
Definition at line 156 of file cmdLineTask.py.
|
staticinherited |
Definition at line 152 of file cmdLineTask.py.
|
inherited |
Definition at line 165 of file cmdLineTask.py.