LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
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 1325 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 921 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 965 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 1300 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 1085 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.