LSSTApplications
17.0+124,17.0+14,17.0+73,18.0.0+37,18.0.0+80,18.0.0-4-g68ffd23+4,18.1.0-1-g0001055+12,18.1.0-1-g03d53ef+5,18.1.0-1-g1349e88+55,18.1.0-1-g2505f39+44,18.1.0-1-g5315e5e+4,18.1.0-1-g5e4b7ea+14,18.1.0-1-g7e8fceb+4,18.1.0-1-g85f8cd4+48,18.1.0-1-g8ff0b9f+4,18.1.0-1-ga2c679d+1,18.1.0-1-gd55f500+35,18.1.0-10-gb58edde+2,18.1.0-11-g0997b02+4,18.1.0-13-gfe4edf0b+12,18.1.0-14-g259bd21+21,18.1.0-19-gdb69f3f+2,18.1.0-2-g5f9922c+24,18.1.0-2-gd3b74e5+11,18.1.0-2-gfbf3545+32,18.1.0-26-g728bddb4+5,18.1.0-27-g6ff7ca9+2,18.1.0-3-g52aa583+25,18.1.0-3-g8ea57af+9,18.1.0-3-gb69f684+42,18.1.0-3-gfcaddf3+6,18.1.0-32-gd8786685a,18.1.0-4-gf3f9b77+6,18.1.0-5-g1dd662b+2,18.1.0-5-g6dbcb01+41,18.1.0-6-gae77429+3,18.1.0-7-g9d75d83+9,18.1.0-7-gae09a6d+30,18.1.0-9-gc381ef5+4,w.2019.45
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.