LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | List of all members
lsst.pipe.tasks.getRepositoryData.DataRefListRunner Class Reference
Inheritance diagram for lsst.pipe.tasks.getRepositoryData.DataRefListRunner:

Public Member Functions

def __call__ (self, dataRefList)
 

Static Public Member Functions

def getTargetList (parsedCmd)
 

Detailed Description

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.

Member Function Documentation

◆ __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
46 
47  @param dataRefList: argument dict for run; contains one key: dataRefList
48 
49  @return:
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
55  """
56  task = self.TaskClass(config=self.config, log=self.log)
57  result = task.runDataRef(dataRefList)
58 
59  if self.doReturnResults:
60  return pipeBase.Struct(
61  dataRefList=dataRefList,
62  metadata=task.metadata,
63  result=result,
64  )
65 
66 

◆ 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
41  """
42  return [parsedCmd.id.refList] # one argument consisting of a list of dataRefs
43 

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