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.fgcmBuildStars.FgcmBuildStarsRunner Class Reference
Inheritance diagram for lsst.fgcmcal.fgcmBuildStars.FgcmBuildStarsRunner:

Public Member Functions

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

Static Public Member Functions

def getTargetList (parsedCmd)
 

Detailed Description

Subclass of TaskRunner for fgcmBuildStarsTask

fgcmBuildStarsTask.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.  Note that FGCM runs on a large set of
dataRefs, and not on single dataRef/tract/patch.
This class transforms the process arguments generated by the ArgumentParser
into the arguments expected by FgcmBuildStarsTask.run().
This runner does not use any parallelization.

Definition at line 241 of file fgcmBuildStars.py.

Member Function Documentation

◆ __call__()

def lsst.fgcmcal.fgcmBuildStars.FgcmBuildStarsRunner.__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 263 of file fgcmBuildStars.py.

263  def __call__(self, args):
264  """
265  Parameters
266  ----------
267  args: `tuple` with (butler, dataRefList)
268 
269  Returns
270  -------
271  exitStatus: `list` with `lsst.pipe.base.Struct`
272  exitStatus (0: success; 1: failure)
273  """
274  butler, dataRefList = args
275 
276  task = self.TaskClass(config=self.config, log=self.log)
277 
278  exitStatus = 0
279  if self.doRaise:
280  task.runDataRef(butler, dataRefList)
281  else:
282  try:
283  task.runDataRef(butler, dataRefList)
284  except Exception as e:
285  exitStatus = 1
286  task.log.fatal("Failed: %s" % e)
287  if not isinstance(e, pipeBase.TaskError):
288  traceback.print_exc(file=sys.stderr)
289 
290  task.writeMetadata(butler)
291 
292  # The task does not return any results:
293  return [pipeBase.Struct(exitStatus=exitStatus)]
294 

◆ getTargetList()

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

Definition at line 255 of file fgcmBuildStars.py.

255  def getTargetList(parsedCmd):
256  """
257  Return a list with one element: a tuple with the butler and
258  list of dataRefs
259  """
260  # we want to combine the butler with any (or no!) dataRefs
261  return [(parsedCmd.butler, parsedCmd.id.refList)]
262 

◆ run()

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

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

Definition at line 295 of file fgcmBuildStars.py.

295  def run(self, parsedCmd):
296  """
297  Run the task, with no multiprocessing
298 
299  Parameters
300  ----------
301  parsedCmd: `lsst.pipe.base.ArgumentParser` parsed command line
302  """
303 
304  resultList = []
305 
306  if self.precall(parsedCmd):
307  targetList = self.getTargetList(parsedCmd)
308  resultList = self(targetList[0])
309 
310  return resultList
311 
312 

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