|
lsst.pipe.base
19.0.0-6-gb6b8b0a+1
|
Public Member Functions | |
| def | __init__ (self, name=None, help="dataset type to process from input data repository", default=None) |
| def | getDatasetType (self, namespace) |
| def | addArgument (self, parser, idName) |
Public Attributes | |
| name | |
| help | |
| default | |
Dataset type specified by a command-line argument.
Parameters
----------
name : `str`, optional
Name of command-line argument (including leading "--",
if appropriate) whose value is the dataset type.
If `None`, uses ``--idName_dstype`` where idName
is the name of the data ID argument (e.g. "id").
help : `str`, optional
Help string for the command-line argument.
default : `object`, optional
Default value. If `None`, then the command-line option is required.
This argument isignored if the command-line argument is positional
(name does not start with "-") because positional arguments do
not support default values.
Definition at line 300 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.DatasetArgument.__init__ | ( | self, | |
name = None, |
|||
help = "dataset type to process from input data repository", |
|||
default = None |
|||
| ) |
Definition at line 323 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.DatasetArgument.addArgument | ( | self, | |
| parser, | |||
| idName | |||
| ) |
Add a command-line argument to specify the dataset type name.
Parameters
----------
parser : `ArgumentParser`
Argument parser.
idName : `str`
Data ID.
Notes
-----
Also sets the `name` attribute if it is currently `None`.
Definition at line 346 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.DatasetArgument.getDatasetType | ( | self, | |
| namespace | |||
| ) |
Get the dataset type as a string, from the appropriate
command-line argument.
Parameters
----------
namespace :
Parsed command.
Returns
-------
datasetType : `str`
Dataset type.
Definition at line 329 of file argumentParser.py.
| lsst.pipe.base.argumentParser.DatasetArgument.default |
Definition at line 327 of file argumentParser.py.
| lsst.pipe.base.argumentParser.DatasetArgument.help |
Definition at line 326 of file argumentParser.py.
| lsst.pipe.base.argumentParser.DatasetArgument.name |
Definition at line 325 of file argumentParser.py.
1.8.13