|
lsst.daf.persistence
18.0.0-1-g5e4b7ea+8
|
Public Member Functions | |
| def | __init__ (self, cls, repoCfg) |
| def | ppprint (self) |
| def | __repr__ (self) |
| def | __getitem__ (self, name) |
| def | __setitem__ (self, name, value) |
| def | __contains__ (self, key) |
| def | update (self, other) |
| def | merge (self, other) |
| def | names (self, topLevelOnly=False) |
| def | asArray (self, name) |
| def | getValue (self, name) |
| def | setValue (self, name, value) |
| def | mergeDefaults (self, other) |
| def | exists (self, key) |
| def | getString (self, key) |
| def | getBool (self, key) |
| def | getPolicy (self, key) |
| def | getStringArray (self, key) |
| def | __lt__ (self, other) |
| def | __le__ (self, other) |
| def | __eq__ (self, other) |
| def | __ne__ (self, other) |
| def | __gt__ (self, other) |
| def | __ge__ (self, other) |
| def | dump (self, output) |
| i/o # More... | |
| def | dumpToFile (self, path) |
Static Public Member Functions | |
| def | defaultPolicyFile (productName, fileName, relativePath=None) |
Public Attributes | |
| data | |
Static Public Attributes | |
| string | yaml_tag = u"!ButlerCfg" |
Represents a Butler configuration.
.. warning::
cfg is 'wet paint' and very likely to change. Use of it in production
code other than via the 'old butler' API is strongly discouraged.
| def lsst.daf.persistence.butler.ButlerCfg.__init__ | ( | self, | |
| cls, | |||
| repoCfg | |||
| ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Get the path to a default policy file.
Determines a directory for the product specified by productName. Then Concatenates
productDir/relativePath/fileName (or productDir/fileName if relativePath is None) to find the path
to the default Policy file
@param productName (string) The name of the product that the default policy is installed as part of
@param fileName (string) The name of the policy file. Can also include a path to the file relative to
the directory where the product is installed.
@param relativePath (string) The relative path from the directior where the product is installed to
the location where the file (or the path to the file) is found. If None
(default), the fileName argument is relative to the installation
directory.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Like dict.update, but will add or modify keys in nested dicts, instead of overwriting the nested
dict entirely.
For example, for the given code:
foo = {'a': {'b': 1}}
foo.update({'a': {'c': 2}})
If foo is a dict, then after the update foo == {'a': {'c': 2}}
But if foo is a Policy, then after the update foo == {'a': {'b': 1, 'c': 2}}
|
static |
1.8.13