|
LSST Applications
22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
|
Classes | |
| class | DataIdContainer |
| class | DataIdArgument |
| class | DynamicDatasetType |
| class | DatasetArgument |
| class | ConfigDatasetType |
| class | ArgumentParser |
| class | InputOnlyArgumentParser |
| class | ConfigValueAction |
| class | ConfigFileAction |
| class | IdValueAction |
| class | LogLevelAction |
| class | ReuseAction |
Functions | |
| def | getTaskDict (config, taskDict=None, baseName="") |
| def | obeyShowArgument (showOpts, config=None, exit=False) |
| def | showTaskHierarchy (config) |
| def | setDottedAttr (item, name, value) |
| def | getDottedAttr (item, name) |
Variables | |
| string | DEFAULT_INPUT_NAME = "PIPE_INPUT_ROOT" |
| string | DEFAULT_CALIB_NAME = "PIPE_CALIB_ROOT" |
| string | DEFAULT_OUTPUT_NAME = "PIPE_OUTPUT_ROOT" |
| def lsst.pipe.base.argumentParser.getDottedAttr | ( | item, | |
| name | |||
| ) |
Get an attribute (like `getattr` but accepts hierarchical names
such as ``foo.bar.baz``).
Parameters
----------
item : obj
Object whose attribute is to be returned.
name : `str`
Name of the attribute to get.
Returns
-------
itemAttr : obj
If name is ``foo.bar.baz then the return value is
``item.foo.bar.baz``.
Definition at line 1330 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
Parameters
----------
config : `lsst.pex.config.Config`
Configuration to process.
taskDict : `dict`, optional
Users should not specify this argument. Supports recursion.
If provided, taskDict is updated in place, else a new `dict`
is started.
baseName : `str`, optional
Users should not specify this argument. It is only used for
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.
Returns
-------
taskDict : `dict`
Keys are config field names, values are task names.
Notes
-----
This function is designed to be called recursively.
The user should call with only a config (leaving taskDict and baseName
at their default values).
Definition at line 925 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.obeyShowArgument | ( | showOpts, | |
config = None, |
|||
exit = False |
|||
| ) |
Process arguments specified with ``--show`` (but ignores
``"data"``).
Parameters
----------
showOpts : `list` of `str`
List of options passed to ``--show``.
config : optional
The provided config.
exit : bool, optional
Exit if ``"run"`` isn't included in ``showOpts``.
Parameters
----------
Supports the following options in showOpts:
- ``config[=PAT]``. Dump all the config entries, or just the ones that
match the glob pattern.
- ``history=PAT``. Show where the config entries that match the glob
pattern were set.
- ``tasks``. Show task hierarchy.
- ``data``. Ignored; to be processed by caller.
- ``run``. Keep going (the default behaviour is to exit if
``--show`` is specified).
Calls ``sys.exit(1)`` if any other option found.
Definition at line 969 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.setDottedAttr | ( | item, | |
| name, | |||
| value | |||
| ) |
Set an instance attribute (like `setattr` but accepting
hierarchical names such as ``foo.bar.baz``).
Parameters
----------
item : obj
Object whose attribute is to be set.
name : `str`
Name of attribute to set.
value : obj
New value for the attribute.
Notes
-----
For example if name is ``foo.bar.baz`` then ``item.foo.bar.baz``
is set to the specified value.
Definition at line 1305 of file argumentParser.py.
| def lsst.pipe.base.argumentParser.showTaskHierarchy | ( | config | ) |
Print task hierarchy to stdout.
Parameters
----------
config : `lsst.pex.config.Config`
Configuration to process.
Definition at line 1090 of file argumentParser.py.
| string lsst.pipe.base.argumentParser.DEFAULT_CALIB_NAME = "PIPE_CALIB_ROOT" |
Definition at line 45 of file argumentParser.py.
| string lsst.pipe.base.argumentParser.DEFAULT_INPUT_NAME = "PIPE_INPUT_ROOT" |
Definition at line 44 of file argumentParser.py.
| string lsst.pipe.base.argumentParser.DEFAULT_OUTPUT_NAME = "PIPE_OUTPUT_ROOT" |
Definition at line 46 of file argumentParser.py.