lsst.pipe.tasks  20.0.0-8-g7eef53f7
Public Member Functions | Static Public Member Functions | List of all members
lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner Class Reference
Inheritance diagram for lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner:

Public Member Functions

def makeTask (self, parsedCmd=None, args=None)
 

Static Public Member Functions

def buildRefDict (parsedCmd)
 
def getTargetList (parsedCmd, **kwargs)
 

Detailed Description

Task runner for `MergeDetectionTask` `MergeMeasurementTask`

Required because the run method requires a list of
dataRefs rather than a single dataRef.

Definition at line 10 of file multiBandUtils.py.

Member Function Documentation

◆ buildRefDict()

def lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner.buildRefDict (   parsedCmd)
static
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.

◆ getTargetList()

def lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner.getTargetList (   parsedCmd,
**  kwargs 
)
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 75 of file multiBandUtils.py.

◆ makeTask()

def lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner.makeTask (   self,
  parsedCmd = None,
  args = None 
)
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.


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