lsst.pex.config
14.0-4-gae1598d
|
Public Member Functions | |
def | __init__ (self, doc, keytype, itemtype, default=None, optional=False, dictCheck=None, itemCheck=None) |
def | rename (self, instance) |
def | validate (self, instance) |
def | toDict (self, instance) |
def | save (self, outfile, instance) |
def | freeze (self, instance) |
def | __set__ (self, instance, value, at=None, label="assignment") |
def | __get__ (self, instance, owner=None, at=None, label="default") |
def | __delete__ (self, instance, at=None, label='deletion') |
Public Attributes | |
keytype | |
itemtype | |
dictCheck | |
itemCheck | |
dtype | |
doc | |
default | |
check | |
optional | |
source | |
Static Public Attributes | |
DictClass = ConfigDict | |
supportedTypes = set((str, unicode, basestring, oldStringType, bool, float, int, complex)) | |
Defines a field which is a mapping between a POD and a config class. This behaves exactly like a DictField with the slight difference that itemtype must be an subclass of Config. This allows config writters to create name-to-config mappings. One use case is for configuring mappings for dataset types in a butler. In this case, the dataset type names are arbitrary and user-selected; the mapping configurations are known and fixed.
Definition at line 88 of file configDictField.py.
def lsst.pex.config.configDictField.ConfigDictField.__init__ | ( | self, | |
doc, | |||
keytype, | |||
itemtype, | |||
default = None , |
|||
optional = False , |
|||
dictCheck = None , |
|||
itemCheck = None |
|||
) |
Definition at line 103 of file configDictField.py.
|
inherited |
|
inherited |
Define how attribute access should occur on the Config instance This is invoked by the owning config object and should not be called directly When the field attribute is accessed on a Config class object, it returns the field object itself in order to allow inspection of Config classes. When the field attribute is access on a config instance, the actual value described by the field (and held by the Config instance) is returned.
|
inherited |
Definition at line 195 of file dictField.py.
def lsst.pex.config.configDictField.ConfigDictField.freeze | ( | self, | |
instance | |||
) |
Definition at line 164 of file configDictField.py.
def lsst.pex.config.configDictField.ConfigDictField.rename | ( | self, | |
instance | |||
) |
Definition at line 123 of file configDictField.py.
def lsst.pex.config.configDictField.ConfigDictField.save | ( | self, | |
outfile, | |||
instance | |||
) |
Definition at line 152 of file configDictField.py.
def lsst.pex.config.configDictField.ConfigDictField.toDict | ( | self, | |
instance | |||
) |
Definition at line 141 of file configDictField.py.
def lsst.pex.config.configDictField.ConfigDictField.validate | ( | self, | |
instance | |||
) |
Definition at line 130 of file configDictField.py.
lsst.pex.config.configDictField.ConfigDictField.dictCheck |
Definition at line 120 of file configDictField.py.
|
static |
Definition at line 101 of file configDictField.py.
lsst.pex.config.configDictField.ConfigDictField.itemCheck |
Definition at line 121 of file configDictField.py.
lsst.pex.config.configDictField.ConfigDictField.itemtype |
Definition at line 119 of file configDictField.py.
lsst.pex.config.configDictField.ConfigDictField.keytype |
Definition at line 118 of file configDictField.py.
|
staticinherited |