LSSTApplications
17.0+10,17.0+52,17.0+91,18.0.0+11,18.0.0+16,18.0.0+38,18.0.0+4,18.0.0-2-ge43143a+8,18.1.0-1-g0001055+4,18.1.0-1-g1349e88+13,18.1.0-1-g2505f39+10,18.1.0-1-g380d4d4+13,18.1.0-1-g5315e5e,18.1.0-1-g5e4b7ea+4,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+10,18.1.0-1-g9a6769a+4,18.1.0-1-ga1a4c1a+9,18.1.0-1-gd55f500+5,18.1.0-1-ge10677a+10,18.1.0-11-gb2589d7b,18.1.0-13-g451e75588+2,18.1.0-13-gbfe7f7f+4,18.1.0-14-g2e73c10+1,18.1.0-2-g31c43f9+10,18.1.0-2-g919ecaf,18.1.0-2-g9c63283+13,18.1.0-2-gdf0b915+13,18.1.0-2-gfefb8b5+2,18.1.0-3-g52aa583+4,18.1.0-3-g8f4a2b1+4,18.1.0-3-g9cb968e+12,18.1.0-3-gab23065,18.1.0-4-g7bbbad0+4,18.1.0-5-g510c42a+12,18.1.0-5-gaeab27e+13,18.1.0-6-gc4bdb98+2,18.1.0-6-gdda7f3e+15,18.1.0-9-g9613d271+1,w.2019.34
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | makeTask (self, parsedCmd=None, args=None) |
def | prepareForMultiProcessing (self) |
def | run (self, parsedCmd) |
def | precall (self, parsedCmd) |
def | __call__ (self, args) |
def | runTask (self, task, dataRef, kwargs) |
Static Public Member Functions | |
def | getTargetList (parsedCmd, kwargs) |
def | buildRefDict (parsedCmd) |
Public Attributes | |
TaskClass | |
doReturnResults | |
config | |
log | |
doRaise | |
clobberConfig | |
doBackup | |
numProcesses | |
timeout | |
Static Public Attributes | |
int | TIMEOUT = 3600*24*30 |
Task runner for the `MergeSourcesTask` Required because the run method requires a list of dataRefs rather than a single dataRef.
Definition at line 369 of file multiBand.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.
|
staticinherited |
Build a hierarchical dictionary of patch references Parameters ---------- parsedCmd: The parsed command Returns ------- refDict: dict A reference dictionary of the form {patch: {tract: {filter: dataRef}}} Raises ------ RuntimeError Thrown when multiple references are provided for the same combination of tract, patch and filter
Definition at line 41 of file multiBandUtils.py.
|
static |
Provide a list of patch references for each patch, tract, filter combo. Parameters ---------- parsedCmd: The parsed command kwargs: Keyword arguments passed to the task Returns ------- targetList: list List of tuples, where each tuple is a (dataRef, kwargs) pair.
Definition at line 376 of file multiBand.py.
|
inherited |
Provide a butler to the Task constructor. Parameters ---------- parsedCmd: The parsed command args: tuple Tuple of a list of data references and kwargs (un-used) Raises ------ RuntimeError Thrown if both `parsedCmd` & `args` are `None`
Definition at line 16 of file multiBandUtils.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.