ConfigDatasetType¶
-
class
lsst.pipe.base.
ConfigDatasetType
(name)[source]¶ Bases:
lsst.pipe.base.argumentParser.DynamicDatasetType
Dataset type specified by a config parameter.
Parameters: name :
str
Name of config option whose value is the dataset type.
Methods Summary
addArgument
(parser, idName)Add a command-line argument to specify dataset type name, if wanted. getDatasetType
(namespace)Return the dataset type as a string, from the appropriate config field Methods Documentation
-
addArgument
(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
-
getDatasetType
(namespace)[source]¶ Return the dataset type as a string, from the appropriate config field
Parameters: namespace :
argparse.Namespace
Parsed command.
-