|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Classes | |
| class | DataIdContainer |
| A container for data IDs and associated data references. More... | |
| class | DataIdArgument |
| Glorified struct for data about id arguments, used by ArgumentParser.add_id_argument. More... | |
| class | DatasetArgument |
| Specify that the dataset type should be a command-line option. More... | |
| class | ArgumentParser |
| An argument parser for pipeline tasks that is based on argparse.ArgumentParser. More... | |
| class | ConfigValueAction |
| argparse action callback to override config parameters using name=value pairs from the command line More... | |
| class | ConfigFileAction |
| argparse action to load config overrides from one or more files More... | |
| class | IdValueAction |
| argparse action callback to process a data ID into a dict More... | |
| class | TraceLevelAction |
| argparse action to set trace level More... | |
Functions | |
| def | _fixPath |
| Apply environment variable as default root, if present, and abspath. More... | |
| def | getTaskDict |
| Get a dictionary of task info for all subtasks in a config. More... | |
| def | obeyShowArgument |
| Process arguments specified with –show (but ignores "data") More... | |
| def | showTaskHierarchy |
| Print task hierarchy to stdout. More... | |
| def | setDottedAttr |
| Like setattr, but accepts hierarchical names, e.g. More... | |
| def | getDottedAttr |
| Like getattr, but accepts hierarchical names, e.g. More... | |
| def | dataExists |
| Return True if data exists at the current level or any data exists at a deeper level, False otherwise. More... | |
Variables | |
| list | __all__ = ["ArgumentParser", "ConfigFileAction", "ConfigValueAction", "DataIdContainer", "DatasetArgument"] |
| string | DEFAULT_INPUT_NAME = "PIPE_INPUT_ROOT" |
| string | DEFAULT_CALIB_NAME = "PIPE_CALIB_ROOT" |
| string | DEFAULT_OUTPUT_NAME = "PIPE_OUTPUT_ROOT" |
| _pattern | |
|
private |
Apply environment variable as default root, if present, and abspath.
| [in] | defName | name of environment variable containing default root path; if the environment variable does not exist then the path is relative to the current working directory |
| [in] | path | path relative to default root path |
Definition at line 44 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.dataExists | ( | butler, | |
| datasetType, | |||
| dataRef | |||
| ) |
Return True if data exists at the current level or any data exists at a deeper level, False otherwise.
| [in] | butler | data butler (a lsst.daf.persistence.Butler) |
| [in] | datasetType | dataset type (a str) |
| [in] | dataRef | butler data reference (a lsst.daf.persistence.ButlerDataRef) |
Definition at line 780 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.getDottedAttr | ( | item, | |
| name | |||
| ) |
Like getattr, but accepts hierarchical names, e.g.
foo.bar.baz
| [in] | item | object whose attribute is to be returned |
| [in] | name | name of item to get |
For example if name is foo.bar.baz then returns item.foo.bar.baz
Definition at line 767 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.getTaskDict | ( | config, | |
taskDict = None, |
|||
baseName = "" |
|||
| ) |
Get a dictionary of task info for all subtasks in a config.
Designed to be called recursively; the user should call with only a config (leaving taskDict and baseName at their default values).
| [in] | config | configuration to process, an instance of lsst.pex.config.Config |
| [in,out] | taskDict | users should not specify this argument; (supports recursion; if provided, taskDict is updated in place, else a new dict is started) |
| [in] | baseName | users should not specify this argument. (supports recursion: if a non-empty string then a period is appended and the result is used as a prefix for additional entries in taskDict; otherwise no prefix is used) |
Definition at line 517 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.obeyShowArgument | ( | showOpts, | |
config = None, |
|||
exit = False |
|||
| ) |
Process arguments specified with –show (but ignores "data")
| showOpts | List of options passed to –show |
| config | The provided config |
| exit | Exit if "run" isn't included in showOpts |
Supports the following options in showOpts:
Calls sys.exit(1) if any other option found.
Definition at line 546 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.setDottedAttr | ( | item, | |
| name, | |||
| value | |||
| ) |
Like setattr, but accepts hierarchical names, e.g.
foo.bar.baz
| [in,out] | item | object whose attribute is to be set |
| [in] | name | name of item to set |
| [in] | value | new value for the item |
For example if name is foo.bar.baz then item.foo.bar.baz is set to the specified value.
Definition at line 752 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.showTaskHierarchy | ( | config | ) |
Print task hierarchy to stdout.
| [in] | config: | configuration to process (an lsst.pex.config.Config) |
Definition at line 601 of file argumentParser.py.
| list lsst.pipe.base.argumentParser.__all__ = ["ArgumentParser", "ConfigFileAction", "ConfigValueAction", "DataIdContainer", "DatasetArgument"] |
Definition at line 38 of file argumentParser.py.
| lsst.pipe.base.argumentParser._pattern |
Definition at line 575 of file argumentParser.py.
| string lsst.pipe.base.argumentParser.DEFAULT_CALIB_NAME = "PIPE_CALIB_ROOT" |
Definition at line 41 of file argumentParser.py.
| string lsst.pipe.base.argumentParser.DEFAULT_INPUT_NAME = "PIPE_INPUT_ROOT" |
Definition at line 40 of file argumentParser.py.
| string lsst.pipe.base.argumentParser.DEFAULT_OUTPUT_NAME = "PIPE_OUTPUT_ROOT" |
Definition at line 42 of file argumentParser.py.
1.8.5