LSSTApplications  19.0.0-10-g4a5fae6+19,20.0.0,20.0.0+1,20.0.0+2,20.0.0+3,20.0.0+5,20.0.0+6,20.0.0-1-g10df615+4,20.0.0-1-g253301a+2,20.0.0-1-g32a200e+4,20.0.0-1-g596936a+4,20.0.0-1-g8a53f90,20.0.0-1-gc96f8cb+5,20.0.0-1-gd1c87d7,20.0.0-13-gfbf2cf9+1,20.0.0-2-g92e20685+5,20.0.0-2-gec03fae,20.0.0-3-g082faa5,20.0.0-3-g2fa8bb8+1,20.0.0-3-ga9be0e7+3,20.0.0-4-gde602ef96+1,20.0.0-7-g180d0f2,20.0.0-8-g7eef53f7,w.2020.26
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | List of all members
lsst.fgcmcal.fgcmCalibrateTract.FgcmCalibrateTractRunner Class Reference
Inheritance diagram for lsst.fgcmcal.fgcmCalibrateTract.FgcmCalibrateTractRunner:

Public Member Functions

def __call__ (self, args)
 
def run (self, parsedCmd)
 

Static Public Member Functions

def getTargetList (parsedCmd)
 

Detailed Description

Subclass of TaskRunner for FgcmCalibrateTractTask

fgcmCalibrateTractTask.run() takes a number of arguments, one of which is
the butler (for persistence and mapper data), and a list of dataRefs
extracted from the command line.  This task runs on a constrained set
of dataRefs, typically a single tract.
This class transforms the process arguments generated by the ArgumentParser
into the arguments expected by FgcmCalibrateTractTask.run().
This runner does not use any parallelization.

Definition at line 102 of file fgcmCalibrateTract.py.

Member Function Documentation

◆ __call__()

def lsst.fgcmcal.fgcmCalibrateTract.FgcmCalibrateTractRunner.__call__ (   self,
  args 
)
Parameters
----------
args: `tuple` with (butler, dataRefList)

Returns
-------
exitStatus: `list` with `lsst.pipe.base.Struct`
   exitStatus (0: success; 1: failure)

Definition at line 123 of file fgcmCalibrateTract.py.

123  def __call__(self, args):
124  """
125  Parameters
126  ----------
127  args: `tuple` with (butler, dataRefList)
128 
129  Returns
130  -------
131  exitStatus: `list` with `lsst.pipe.base.Struct`
132  exitStatus (0: success; 1: failure)
133  """
134  butler, dataRefList = args
135 
136  task = self.TaskClass(config=self.config, log=self.log)
137 
138  exitStatus = 0
139  if self.doRaise:
140  results = task.runDataRef(butler, dataRefList)
141  else:
142  try:
143  results = task.runDataRef(butler, dataRefList)
144  except Exception as e:
145  exitStatus = 1
146  task.log.fatal("Failed: %s" % e)
147  if not isinstance(e, pipeBase.TaskError):
148  traceback.print_exc(file=sys.stderr)
149 
150  task.writeMetadata(butler)
151 
152  if self.doReturnResults:
153  return [pipeBase.Struct(exitStatus=exitStatus,
154  results=results)]
155  else:
156  return [pipeBase.Struct(exitStatus=exitStatus)]
157 

◆ getTargetList()

def lsst.fgcmcal.fgcmCalibrateTract.FgcmCalibrateTractRunner.getTargetList (   parsedCmd)
static
Return a list with one element: a tuple with the butler and
list of dataRefs

Definition at line 115 of file fgcmCalibrateTract.py.

115  def getTargetList(parsedCmd):
116  """
117  Return a list with one element: a tuple with the butler and
118  list of dataRefs
119  """
120  # we want to combine the butler with any (or no!) dataRefs
121  return [(parsedCmd.butler, parsedCmd.id.refList)]
122 

◆ run()

def lsst.fgcmcal.fgcmCalibrateTract.FgcmCalibrateTractRunner.run (   self,
  parsedCmd 
)
Run the task, with no multiprocessing

Parameters
----------
parsedCmd: `lsst.pipe.base.ArgumentParser` parsed command line

Definition at line 158 of file fgcmCalibrateTract.py.

158  def run(self, parsedCmd):
159  """
160  Run the task, with no multiprocessing
161 
162  Parameters
163  ----------
164  parsedCmd: `lsst.pipe.base.ArgumentParser` parsed command line
165  """
166 
167  resultList = []
168 
169  if self.precall(parsedCmd):
170  targetList = self.getTargetList(parsedCmd)
171  resultList = self(targetList[0])
172 
173  return resultList
174 
175 

The documentation for this class was generated from the following file:
lsst.pipe.tasks.assembleCoadd.run
def run(self, skyInfo, tempExpRefList, imageScalerList, weightList, altMaskList=None, mask=None, supplementaryData=None)
Definition: assembleCoadd.py:712