lsst.pipe.base
20.0.0-25-g3dcad98+7edba9c73c
|
Public Member Functions | |
def | addArgument (self, parser, idName) |
def | getDatasetType (self, namespace) |
Abstract base class for a dataset type determined from parsed command-line arguments.
Definition at line 265 of file argumentParser.py.
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.
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.