ConfigDatasetType¶
-
class
lsst.pipe.base.ConfigDatasetType(name)[source]¶ Bases:
lsst.pipe.base.argumentParser.DynamicDatasetTypeDataset type specified by a config parameter.
Parameters: name :
strName 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 :
ArgumentParserArgument parser to add the argument to.
idName :
strName 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.NamespaceParsed command.
-