LSSTApplications
16.0-10-g0ee56ad+5,16.0-11-ga33d1f2+5,16.0-12-g3ef5c14+3,16.0-12-g71e5ef5+18,16.0-12-gbdf3636+3,16.0-13-g118c103+3,16.0-13-g8f68b0a+3,16.0-15-gbf5c1cb+4,16.0-16-gfd17674+3,16.0-17-g7c01f5c+3,16.0-18-g0a50484+1,16.0-20-ga20f992+8,16.0-21-g0e05fd4+6,16.0-21-g15e2d33+4,16.0-22-g62d8060+4,16.0-22-g847a80f+4,16.0-25-gf00d9b8+1,16.0-28-g3990c221+4,16.0-3-gf928089+3,16.0-32-g88a4f23+5,16.0-34-gd7987ad+3,16.0-37-gc7333cb+2,16.0-4-g10fc685+2,16.0-4-g18f3627+26,16.0-4-g5f3a788+26,16.0-5-gaf5c3d7+4,16.0-5-gcc1f4bb+1,16.0-6-g3b92700+4,16.0-6-g4412fcd+3,16.0-6-g7235603+4,16.0-69-g2562ce1b+2,16.0-8-g14ebd58+4,16.0-8-g2df868b+1,16.0-8-g4cec79c+6,16.0-8-gadf6c7a+1,16.0-8-gfc7ad86,16.0-82-g59ec2a54a+1,16.0-9-g5400cdc+2,16.0-9-ge6233d7+5,master-g2880f2d8cf+3,v17.0.rc1
LSSTDataManagementBasePackage
|
Classes | |
class | ArgumentParser |
class | ConfigDatasetType |
class | ConfigFileAction |
class | ConfigValueAction |
class | DataIdArgument |
class | DataIdContainer |
class | DatasetArgument |
class | DynamicDatasetType |
class | IdValueAction |
class | InputOnlyArgumentParser |
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 1322 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 918 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 962 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 1297 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 1082 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.