LSST Applications  22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
Public Member Functions | List of all members
lsst.pipe.base.argumentParser.DynamicDatasetType Class Reference
Inheritance diagram for lsst.pipe.base.argumentParser.DynamicDatasetType:
lsst.pipe.base.argumentParser.ConfigDatasetType lsst.pipe.base.argumentParser.DatasetArgument

Public Member Functions

def addArgument (self, parser, idName)
 
def getDatasetType (self, namespace)
 

Detailed Description

Abstract base class for a dataset type determined from parsed
command-line arguments.

Definition at line 265 of file argumentParser.py.

Member Function Documentation

◆ addArgument()

def lsst.pipe.base.argumentParser.DynamicDatasetType.addArgument (   self,
  parser,
  idName 
)
Add a command-line argument to specify dataset type name,
if wanted.

Parameters
----------
parser : `ArgumentParser`
    Argument parser to add the argument to.
idName : `str`
    Name of data ID argument, without the leading ``"--"``,
    e.g. ``"id"``.

Notes
-----
The default implementation does nothing

Reimplemented in lsst.pipe.base.argumentParser.DatasetArgument.

Definition at line 270 of file argumentParser.py.

270  def addArgument(self, parser, idName):
271  """Add a command-line argument to specify dataset type name,
272  if wanted.
273 
274  Parameters
275  ----------
276  parser : `ArgumentParser`
277  Argument parser to add the argument to.
278  idName : `str`
279  Name of data ID argument, without the leading ``"--"``,
280  e.g. ``"id"``.
281 
282  Notes
283  -----
284  The default implementation does nothing
285  """
286  pass
287 

◆ getDatasetType()

def lsst.pipe.base.argumentParser.DynamicDatasetType.getDatasetType (   self,
  namespace 
)
Get the dataset type as a string, based on parsed command-line
arguments.

Returns
-------
datasetType : `str`
    Dataset type.

Reimplemented in lsst.pipe.base.argumentParser.ConfigDatasetType, and lsst.pipe.base.argumentParser.DatasetArgument.

Definition at line 289 of file argumentParser.py.

289  def getDatasetType(self, namespace):
290  """Get the dataset type as a string, based on parsed command-line
291  arguments.
292 
293  Returns
294  -------
295  datasetType : `str`
296  Dataset type.
297  """
298  raise NotImplementedError("Subclasses must override")
299 
300 

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