LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.pipe.base.cmdLineTask.TaskRunner Class Reference
Inheritance diagram for lsst.pipe.base.cmdLineTask.TaskRunner:
lsst.ctrl.pool.parallel.BatchTaskRunner lsst.pipe.base.cmdLineTask.ButlerInitializedTaskRunner lsst.pipe.base.cmdLineTask.LegacyTaskRunner lsst.pipe.drivers.constructCalibs.CalibTaskRunner lsst.pipe.drivers.multiBandDriver.MultiBandDriverTaskRunner lsst.pipe.drivers.utils.ButlerTaskRunner lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner lsst.pipe.drivers.processCcdWithFakesDriver.ProcessCcdWithFakesTaskRunner lsst.pipe.drivers.singleFrameDriver.SingleFrameTaskRunner lsst.meas.base.forcedPhotCoadd.ForcedPhotCoaddRunner lsst.pipe.drivers.singleFrameDriver.SingleFrameTaskRunner

Public Member Functions

def __init__ (self, TaskClass, parsedCmd, doReturnResults=False)
 
def prepareForMultiProcessing (self)
 
def run (self, parsedCmd)
 
def makeTask (self, parsedCmd=None, args=None)
 
def precall (self, parsedCmd)
 
def __call__ (self, args)
 
def runTask (self, task, dataRef, kwargs)
 

Static Public Member Functions

def getTargetList (parsedCmd, **kwargs)
 

Public Attributes

 TaskClass
 
 doReturnResults
 
 config
 
 log
 
 doRaise
 
 clobberConfig
 
 doBackup
 
 numProcesses
 
 timeout
 

Static Public Attributes

int TIMEOUT = 3600*24*30
 

Detailed Description

Run a command-line task, using `multiprocessing` if requested.

Parameters
----------
TaskClass : `lsst.pipe.base.Task` subclass
    The class of the task to run.
parsedCmd : `argparse.Namespace`
    The parsed command-line arguments, as returned by the task's argument
    parser's `~lsst.pipe.base.ArgumentParser.parse_args` method.

    .. warning::

       Do not store ``parsedCmd``, as this instance is pickled (if
       multiprocessing) and parsedCmd may contain non-picklable elements.
       It certainly contains more data than we need to send to each
       instance of the task.
doReturnResults : `bool`, optional
    Should run return the collected result from each invocation of the
    task? This is only intended for unit tests and similar use. It can
    easily exhaust memory (if the task returns enough data and you call it
    enough times) and it will fail when using multiprocessing if the
    returned data cannot be pickled.

    Note that even if ``doReturnResults`` is False a struct with a single
    member "exitStatus" is returned, with value 0 or 1 to be returned to
    the unix shell.

Raises
------
ImportError
    Raised if multiprocessing is requested (and the task supports it) but
    the multiprocessing library cannot be imported.

Notes
-----
Each command-line task (subclass of `lsst.pipe.base.CmdLineTask`) has a
task runner. By default it is this class, but some tasks require a
subclass. See the manual :ref:`creating-a-command-line-task` for more
information. See `CmdLineTask.parseAndRun` to see how a task runner is
used.

You may use this task runner for your command-line task if your task has a
``runDataRef`` method that takes exactly one argument: a butler data
reference. Otherwise you must provide a task-specific subclass of
this runner for your task's ``RunnerClass`` that overrides
`TaskRunner.getTargetList` and possibly
`TaskRunner.__call__`. See `TaskRunner.getTargetList` for details.

This design matches the common pattern for command-line tasks: the
``runDataRef`` method takes a single data reference, of some suitable name.
Additional arguments are rare, and if present, require a subclass of
`TaskRunner` that calls these additional arguments by name.

Instances of this class must be picklable in order to be compatible with
multiprocessing. If multiprocessing is requested
(``parsedCmd.numProcesses > 1``) then `runDataRef` calls
`prepareForMultiProcessing` to jettison optional non-picklable elements.
If your task runner is not compatible with multiprocessing then indicate
this in your task by setting class variable ``canMultiprocess=False``.

Due to a `python bug`__, handling a `KeyboardInterrupt` properly `requires
specifying a timeout`__. This timeout (in sec) can be specified as the
``timeout`` element in the output from `~lsst.pipe.base.ArgumentParser`
(the ``parsedCmd``), if available, otherwise we use `TaskRunner.TIMEOUT`.

By default, we disable "implicit" threading -- ie, as provided by
underlying numerical libraries such as MKL or BLAS. This is designed to
avoid thread contention both when a single command line task spawns
multiple processes and when multiple users are running on a shared system.
Users can override this behaviour by setting the
``LSST_ALLOW_IMPLICIT_THREADS`` environment variable.

.. __: http://bugs.python.org/issue8296
.. __: http://stackoverflow.com/questions/1408356/

Definition at line 94 of file cmdLineTask.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.base.cmdLineTask.TaskRunner.__init__ (   self,
  TaskClass,
  parsedCmd,
  doReturnResults = False 
)

Reimplemented in lsst.pipe.drivers.multiBandDriver.MultiBandDriverTaskRunner.

Definition at line 174 of file cmdLineTask.py.

174  def __init__(self, TaskClass, parsedCmd, doReturnResults=False):
175  self.TaskClass = TaskClass
176  self.doReturnResults = bool(doReturnResults)
177  self.config = parsedCmd.config
178  self.log = parsedCmd.log
179  self.doRaise = bool(parsedCmd.doraise)
180  self.clobberConfig = bool(parsedCmd.clobberConfig)
181  self.doBackup = not bool(parsedCmd.noBackupConfig)
182  self.numProcesses = int(getattr(parsedCmd, 'processes', 1))
183 
184  self.timeout = getattr(parsedCmd, 'timeout', None)
185  if self.timeout is None or self.timeout <= 0:
186  self.timeout = self.TIMEOUT
187 
188  if self.numProcesses > 1:
189  if not TaskClass.canMultiprocess:
190  self.log.warn("This task does not support multiprocessing; using one process")
191  self.numProcesses = 1
192 

Member Function Documentation

◆ __call__()

def lsst.pipe.base.cmdLineTask.TaskRunner.__call__ (   self,
  args 
)
Run the Task on a single target.

Parameters
----------
args
    Arguments for Task.runDataRef()

Returns
-------
struct : `lsst.pipe.base.Struct`
    Contains these fields if ``doReturnResults`` is `True`:

    - ``dataRef``: the provided data reference.
    - ``metadata``: task metadata after execution of run.
    - ``result``: result returned by task run, or `None` if the task
      fails.
    - ``exitStatus``: 0 if the task completed successfully, 1
      otherwise.

    If ``doReturnResults`` is `False` the struct contains:

    - ``exitStatus``: 0 if the task completed successfully, 1
      otherwise.

Notes
-----
This default implementation assumes that the ``args`` is a tuple
containing a data reference and a dict of keyword arguments.

.. warning::

   If you override this method and wish to return something when
   ``doReturnResults`` is `False`, then it must be picklable to
   support multiprocessing and it should be small enough that pickling
   and unpickling do not add excessive overhead.

Reimplemented in lsst.pipe.drivers.constructCalibs.CalibTaskRunner.

Definition at line 380 of file cmdLineTask.py.

380  def __call__(self, args):
381  """Run the Task on a single target.
382 
383  Parameters
384  ----------
385  args
386  Arguments for Task.runDataRef()
387 
388  Returns
389  -------
390  struct : `lsst.pipe.base.Struct`
391  Contains these fields if ``doReturnResults`` is `True`:
392 
393  - ``dataRef``: the provided data reference.
394  - ``metadata``: task metadata after execution of run.
395  - ``result``: result returned by task run, or `None` if the task
396  fails.
397  - ``exitStatus``: 0 if the task completed successfully, 1
398  otherwise.
399 
400  If ``doReturnResults`` is `False` the struct contains:
401 
402  - ``exitStatus``: 0 if the task completed successfully, 1
403  otherwise.
404 
405  Notes
406  -----
407  This default implementation assumes that the ``args`` is a tuple
408  containing a data reference and a dict of keyword arguments.
409 
410  .. warning::
411 
412  If you override this method and wish to return something when
413  ``doReturnResults`` is `False`, then it must be picklable to
414  support multiprocessing and it should be small enough that pickling
415  and unpickling do not add excessive overhead.
416  """
417  dataRef, kwargs = args
418  if self.log is None:
419  self.log = Log.getDefaultLogger()
420  if hasattr(dataRef, "dataId"):
421  self.log.MDC("LABEL", str(dataRef.dataId))
422  elif isinstance(dataRef, (list, tuple)):
423  self.log.MDC("LABEL", str([ref.dataId for ref in dataRef if hasattr(ref, "dataId")]))
424  task = self.makeTask(args=args)
425  result = None # in case the task fails
426  exitStatus = 0 # exit status for the shell
427  if self.doRaise:
428  result = self.runTask(task, dataRef, kwargs)
429  else:
430  try:
431  result = self.runTask(task, dataRef, kwargs)
432  except Exception as e:
433  # The shell exit value will be the number of dataRefs returning
434  # non-zero, so the actual value used here is lost.
435  exitStatus = 1
436 
437  # don't use a try block as we need to preserve the original
438  # exception
439  eName = type(e).__name__
440  if hasattr(dataRef, "dataId"):
441  task.log.fatal("Failed on dataId=%s: %s: %s", dataRef.dataId, eName, e)
442  elif isinstance(dataRef, (list, tuple)):
443  task.log.fatal("Failed on dataIds=[%s]: %s: %s",
444  ", ".join(str(ref.dataId) for ref in dataRef), eName, e)
445  else:
446  task.log.fatal("Failed on dataRef=%s: %s: %s", dataRef, eName, e)
447 
448  if not isinstance(e, TaskError):
449  traceback.print_exc(file=sys.stderr)
450 
451  # Ensure all errors have been logged and aren't hanging around in a
452  # buffer
453  sys.stdout.flush()
454  sys.stderr.flush()
455 
456  task.writeMetadata(dataRef)
457 
458  # remove MDC so it does not show up outside of task context
459  self.log.MDCRemove("LABEL")
460 
461  if self.doReturnResults:
462  return Struct(
463  exitStatus=exitStatus,
464  dataRef=dataRef,
465  metadata=task.metadata,
466  result=result,
467  )
468  else:
469  return Struct(
470  exitStatus=exitStatus,
471  )
472 

◆ getTargetList()

def lsst.pipe.base.cmdLineTask.TaskRunner.getTargetList (   parsedCmd,
**  kwargs 
)
static
Get a list of (dataRef, kwargs) for `TaskRunner.__call__`.

Parameters
----------
parsedCmd : `argparse.Namespace`
    The parsed command object returned by
    `lsst.pipe.base.argumentParser.ArgumentParser.parse_args`.
kwargs
    Any additional keyword arguments. In the default `TaskRunner` this
    is an empty dict, but having it simplifies overriding `TaskRunner`
    for tasks whose runDataRef method takes additional arguments
    (see case (1) below).

Notes
-----
The default implementation of `TaskRunner.getTargetList` and
`TaskRunner.__call__` works for any command-line task whose
``runDataRef`` method takes exactly one argument: a data reference.
Otherwise you must provide a variant of TaskRunner that overrides
`TaskRunner.getTargetList` and possibly `TaskRunner.__call__`.
There are two cases.

**Case 1**

If your command-line task has a ``runDataRef`` method that takes one
data reference followed by additional arguments, then you need only
override `TaskRunner.getTargetList` to return the additional
arguments as an argument dict. To make this easier, your overridden
version of `~TaskRunner.getTargetList` may call
`TaskRunner.getTargetList` with the extra arguments as keyword
arguments. For example, the following adds an argument dict containing
a single key: "calExpList", whose value is the list of data IDs for
the calexp ID argument:

.. code-block:: python

    def getTargetList(parsedCmd):
return TaskRunner.getTargetList(
    parsedCmd,
    calExpList=parsedCmd.calexp.idList
)

It is equivalent to this slightly longer version:

.. code-block:: python

    @staticmethod
    def getTargetList(parsedCmd):
argDict = dict(calExpList=parsedCmd.calexp.idList)
return [(dataId, argDict) for dataId in parsedCmd.id.idList]

**Case 2**

If your task does not meet condition (1) then you must override both
TaskRunner.getTargetList and `TaskRunner.__call__`. You may do this
however you see fit, so long as `TaskRunner.getTargetList`
returns a list, each of whose elements is sent to
`TaskRunner.__call__`, which runs your task.

Reimplemented in lsst.pipe.drivers.constructCalibs.CalibTaskRunner, lsst.meas.base.forcedPhotCoadd.ForcedPhotCoaddRunner, lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner, and lsst.pipe.drivers.utils.ButlerTaskRunner.

Definition at line 253 of file cmdLineTask.py.

253  def getTargetList(parsedCmd, **kwargs):
254  """Get a list of (dataRef, kwargs) for `TaskRunner.__call__`.
255 
256  Parameters
257  ----------
258  parsedCmd : `argparse.Namespace`
259  The parsed command object returned by
260  `lsst.pipe.base.argumentParser.ArgumentParser.parse_args`.
261  kwargs
262  Any additional keyword arguments. In the default `TaskRunner` this
263  is an empty dict, but having it simplifies overriding `TaskRunner`
264  for tasks whose runDataRef method takes additional arguments
265  (see case (1) below).
266 
267  Notes
268  -----
269  The default implementation of `TaskRunner.getTargetList` and
270  `TaskRunner.__call__` works for any command-line task whose
271  ``runDataRef`` method takes exactly one argument: a data reference.
272  Otherwise you must provide a variant of TaskRunner that overrides
273  `TaskRunner.getTargetList` and possibly `TaskRunner.__call__`.
274  There are two cases.
275 
276  **Case 1**
277 
278  If your command-line task has a ``runDataRef`` method that takes one
279  data reference followed by additional arguments, then you need only
280  override `TaskRunner.getTargetList` to return the additional
281  arguments as an argument dict. To make this easier, your overridden
282  version of `~TaskRunner.getTargetList` may call
283  `TaskRunner.getTargetList` with the extra arguments as keyword
284  arguments. For example, the following adds an argument dict containing
285  a single key: "calExpList", whose value is the list of data IDs for
286  the calexp ID argument:
287 
288  .. code-block:: python
289 
290  def getTargetList(parsedCmd):
291  return TaskRunner.getTargetList(
292  parsedCmd,
293  calExpList=parsedCmd.calexp.idList
294  )
295 
296  It is equivalent to this slightly longer version:
297 
298  .. code-block:: python
299 
300  @staticmethod
301  def getTargetList(parsedCmd):
302  argDict = dict(calExpList=parsedCmd.calexp.idList)
303  return [(dataId, argDict) for dataId in parsedCmd.id.idList]
304 
305  **Case 2**
306 
307  If your task does not meet condition (1) then you must override both
308  TaskRunner.getTargetList and `TaskRunner.__call__`. You may do this
309  however you see fit, so long as `TaskRunner.getTargetList`
310  returns a list, each of whose elements is sent to
311  `TaskRunner.__call__`, which runs your task.
312  """
313  return [(ref, kwargs) for ref in parsedCmd.id.refList]
314 

◆ makeTask()

def lsst.pipe.base.cmdLineTask.TaskRunner.makeTask (   self,
  parsedCmd = None,
  args = None 
)
Create a Task instance.

Parameters
----------
parsedCmd
    Parsed command-line options (used for extra task args by some task
    runners).
args
    Args tuple passed to `TaskRunner.__call__` (used for extra task
    arguments by some task runners).

Notes
-----
``makeTask`` can be called with either the ``parsedCmd`` argument or
``args`` argument set to None, but it must construct identical Task
instances in either case.

Subclasses may ignore this method entirely if they reimplement both
`TaskRunner.precall` and `TaskRunner.__call__`.

Reimplemented in lsst.pipe.base.cmdLineTask.ButlerInitializedTaskRunner, lsst.pipe.drivers.multiBandDriver.MultiBandDriverTaskRunner, and lsst.pipe.tasks.multiBandUtils.MergeSourcesRunner.

Definition at line 315 of file cmdLineTask.py.

315  def makeTask(self, parsedCmd=None, args=None):
316  """Create a Task instance.
317 
318  Parameters
319  ----------
320  parsedCmd
321  Parsed command-line options (used for extra task args by some task
322  runners).
323  args
324  Args tuple passed to `TaskRunner.__call__` (used for extra task
325  arguments by some task runners).
326 
327  Notes
328  -----
329  ``makeTask`` can be called with either the ``parsedCmd`` argument or
330  ``args`` argument set to None, but it must construct identical Task
331  instances in either case.
332 
333  Subclasses may ignore this method entirely if they reimplement both
334  `TaskRunner.precall` and `TaskRunner.__call__`.
335  """
336  return self.TaskClass(config=self.config, log=self.log)
337 

◆ precall()

def lsst.pipe.base.cmdLineTask.TaskRunner.precall (   self,
  parsedCmd 
)
Hook for code that should run exactly once, before multiprocessing.

Notes
-----
Must return True if `TaskRunner.__call__` should subsequently be
called.

.. warning::

   Implementations must take care to ensure that no unpicklable
   attributes are added to the TaskRunner itself, for compatibility
   with multiprocessing.

The default implementation writes package versions, schemas and
configs, or compares them to existing files on disk if present.

Definition at line 349 of file cmdLineTask.py.

349  def precall(self, parsedCmd):
350  """Hook for code that should run exactly once, before multiprocessing.
351 
352  Notes
353  -----
354  Must return True if `TaskRunner.__call__` should subsequently be
355  called.
356 
357  .. warning::
358 
359  Implementations must take care to ensure that no unpicklable
360  attributes are added to the TaskRunner itself, for compatibility
361  with multiprocessing.
362 
363  The default implementation writes package versions, schemas and
364  configs, or compares them to existing files on disk if present.
365  """
366  task = self.makeTask(parsedCmd=parsedCmd)
367 
368  if self.doRaise:
369  self._precallImpl(task, parsedCmd)
370  else:
371  try:
372  self._precallImpl(task, parsedCmd)
373  except Exception as e:
374  task.log.fatal("Failed in task initialization: %s", e)
375  if not isinstance(e, TaskError):
376  traceback.print_exc(file=sys.stderr)
377  return False
378  return True
379 

◆ prepareForMultiProcessing()

def lsst.pipe.base.cmdLineTask.TaskRunner.prepareForMultiProcessing (   self)
Prepare this instance for multiprocessing

Optional non-picklable elements are removed.

This is only called if the task is run under multiprocessing.

Definition at line 193 of file cmdLineTask.py.

193  def prepareForMultiProcessing(self):
194  """Prepare this instance for multiprocessing
195 
196  Optional non-picklable elements are removed.
197 
198  This is only called if the task is run under multiprocessing.
199  """
200  self.log = None
201 

◆ run()

def lsst.pipe.base.cmdLineTask.TaskRunner.run (   self,
  parsedCmd 
)
Run the task on all targets.

Parameters
----------
parsedCmd : `argparse.Namespace`
    Parsed command `argparse.Namespace`.

Returns
-------
resultList : `list`
    A list of results returned by `TaskRunner.__call__`, or an empty
    list if `TaskRunner.__call__` is not called (e.g. if
    `TaskRunner.precall` returns `False`). See `TaskRunner.__call__`
    for details.

Notes
-----
The task is run under multiprocessing if `TaskRunner.numProcesses`
is more than 1; otherwise processing is serial.

Reimplemented in lsst.ctrl.pool.parallel.BatchTaskRunner.

Definition at line 202 of file cmdLineTask.py.

202  def run(self, parsedCmd):
203  """Run the task on all targets.
204 
205  Parameters
206  ----------
207  parsedCmd : `argparse.Namespace`
208  Parsed command `argparse.Namespace`.
209 
210  Returns
211  -------
212  resultList : `list`
213  A list of results returned by `TaskRunner.__call__`, or an empty
214  list if `TaskRunner.__call__` is not called (e.g. if
215  `TaskRunner.precall` returns `False`). See `TaskRunner.__call__`
216  for details.
217 
218  Notes
219  -----
220  The task is run under multiprocessing if `TaskRunner.numProcesses`
221  is more than 1; otherwise processing is serial.
222  """
223  resultList = []
224  disableImplicitThreading() # To prevent thread contention
225  if self.numProcesses > 1:
226  import multiprocessing
227  self.prepareForMultiProcessing()
228  pool = multiprocessing.Pool(processes=self.numProcesses, maxtasksperchild=1)
229  mapFunc = functools.partial(_runPool, pool, self.timeout)
230  else:
231  pool = None
232  mapFunc = map
233 
234  if self.precall(parsedCmd):
235  profileName = parsedCmd.profile if hasattr(parsedCmd, "profile") else None
236  log = parsedCmd.log
237  targetList = self.getTargetList(parsedCmd)
238  if len(targetList) > 0:
239  with profile(profileName, log):
240  # Run the task using self.__call__
241  resultList = list(mapFunc(self, targetList))
242  else:
243  log.warn("Not running the task because there is no data to process; "
244  "you may preview data using \"--show data\"")
245 
246  if pool is not None:
247  pool.close()
248  pool.join()
249 
250  return resultList
251 

◆ runTask()

def lsst.pipe.base.cmdLineTask.TaskRunner.runTask (   self,
  task,
  dataRef,
  kwargs 
)
Make the actual call to `runDataRef` for this task.

Parameters
----------
task : `lsst.pipe.base.CmdLineTask` class
    The class of the task to run.
dataRef
    Butler data reference that contains the data the task will process.
kwargs
    Any additional keyword arguments.  See `TaskRunner.getTargetList`
    above.

Notes
-----
The default implementation of `TaskRunner.runTask` works for any
command-line task which has a ``runDataRef`` method that takes a data
reference and an optional set of additional keyword arguments.
This method returns the results generated by the task's `runDataRef`
method.

Reimplemented in lsst.pipe.base.cmdLineTask.LegacyTaskRunner.

Definition at line 473 of file cmdLineTask.py.

473  def runTask(self, task, dataRef, kwargs):
474  """Make the actual call to `runDataRef` for this task.
475 
476  Parameters
477  ----------
478  task : `lsst.pipe.base.CmdLineTask` class
479  The class of the task to run.
480  dataRef
481  Butler data reference that contains the data the task will process.
482  kwargs
483  Any additional keyword arguments. See `TaskRunner.getTargetList`
484  above.
485 
486  Notes
487  -----
488  The default implementation of `TaskRunner.runTask` works for any
489  command-line task which has a ``runDataRef`` method that takes a data
490  reference and an optional set of additional keyword arguments.
491  This method returns the results generated by the task's `runDataRef`
492  method.
493 
494  """
495  return task.runDataRef(dataRef, **kwargs)
496 
497 

Member Data Documentation

◆ clobberConfig

lsst.pipe.base.cmdLineTask.TaskRunner.clobberConfig

Definition at line 180 of file cmdLineTask.py.

◆ config

lsst.pipe.base.cmdLineTask.TaskRunner.config

Definition at line 177 of file cmdLineTask.py.

◆ doBackup

lsst.pipe.base.cmdLineTask.TaskRunner.doBackup

Definition at line 181 of file cmdLineTask.py.

◆ doRaise

lsst.pipe.base.cmdLineTask.TaskRunner.doRaise

Definition at line 179 of file cmdLineTask.py.

◆ doReturnResults

lsst.pipe.base.cmdLineTask.TaskRunner.doReturnResults

Definition at line 176 of file cmdLineTask.py.

◆ log

lsst.pipe.base.cmdLineTask.TaskRunner.log

Definition at line 178 of file cmdLineTask.py.

◆ numProcesses

lsst.pipe.base.cmdLineTask.TaskRunner.numProcesses

Definition at line 182 of file cmdLineTask.py.

◆ TaskClass

lsst.pipe.base.cmdLineTask.TaskRunner.TaskClass

Definition at line 175 of file cmdLineTask.py.

◆ TIMEOUT

int lsst.pipe.base.cmdLineTask.TaskRunner.TIMEOUT = 3600*24*30
static

Definition at line 171 of file cmdLineTask.py.

◆ timeout

lsst.pipe.base.cmdLineTask.TaskRunner.timeout

Definition at line 184 of file cmdLineTask.py.


The documentation for this class was generated from the following file:
lsst::log.log.logContinued.warn
def warn(fmt, *args)
Definition: logContinued.py:205
lsst::log.log.logContinued.MDCRemove
def MDCRemove(key)
Definition: logContinued.py:166
lsst.pipe.base.cmdLineTask.profile
def profile(filename, log=None)
Definition: cmdLineTask.py:50
lsst::base::disableImplicitThreading
bool disableImplicitThreading()
Disable threading that has not been set explicitly.
Definition: threads.cc:132
lsst.pipe.tasks.assembleCoadd.run
def run(self, skyInfo, tempExpRefList, imageScalerList, weightList, altMaskList=None, mask=None, supplementaryData=None)
Definition: assembleCoadd.py:720
lsst::log.log.logContinued.MDC
def MDC(key, value)
Definition: logContinued.py:162
list
daf::base::PropertyList * list
Definition: fits.cc:913
type
table::Key< int > type
Definition: Detector.cc:163