A task runner that calls run with a list of data references
Differs from the default TaskRunner by providing all data references at once,
instead of iterating over them one at a time.
Definition at line 32 of file getRepositoryData.py.
◆ __call__()
def lsst.pipe.tasks.getRepositoryData.DataRefListRunner.__call__ |
( |
|
self, |
|
|
|
dataRefList |
|
) |
| |
Run GetRepositoryDataTask.run on a single target
@param dataRefList: argument dict for run; contains one key: dataRefList
@return:
- None if doReturnResults false
- A pipe_base Struct containing these fields if doReturnResults true:
- dataRefList: the argument dict sent to runDataRef
- metadata: task metadata after execution of runDataRef
- result: result returned by task runDataRef
Definition at line 44 of file getRepositoryData.py.
44 def __call__(self, dataRefList):
45 """Run GetRepositoryDataTask.run on a single target 47 @param dataRefList: argument dict for run; contains one key: dataRefList 50 - None if doReturnResults false 51 - A pipe_base Struct containing these fields if doReturnResults true: 52 - dataRefList: the argument dict sent to runDataRef 53 - metadata: task metadata after execution of runDataRef 54 - result: result returned by task runDataRef 56 task = self.TaskClass(config=self.config, log=self.log)
57 result = task.runDataRef(dataRefList)
59 if self.doReturnResults:
60 return pipeBase.Struct(
61 dataRefList=dataRefList,
62 metadata=task.metadata,
◆ getTargetList()
def lsst.pipe.tasks.getRepositoryData.DataRefListRunner.getTargetList |
( |
|
parsedCmd | ) |
|
|
static |
Return a list of targets (arguments for __call__); one entry per invocation
Definition at line 39 of file getRepositoryData.py.
39 def getTargetList(parsedCmd):
40 """Return a list of targets (arguments for __call__); one entry per invocation 42 return [parsedCmd.id.refList]
The documentation for this class was generated from the following file:
- /j/snowflake/release/lsstsw/stack/Linux64/pipe_tasks/18.1.0/python/lsst/pipe/tasks/getRepositoryData.py