lsst.pex.config
13.0-3-g520d906+6
|
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 | __init__ (self, doc, keytype, itemtype, default=None, optional=False, dictCheck=None, itemCheck=None) |
def | validate (self, instance) |
def | __set__ (self, instance, value, at=None, label="assignment") |
def | toDict (self, instance) |
![]() | |
def | __init__ (self, doc, dtype, default=None, check=None, optional=False) |
def | rename (self, instance) |
def | validate (self, instance) |
def | freeze (self, instance) |
def | save (self, outfile, instance) |
def | toDict (self, instance) |
def | __get__ (self, instance, owner=None, at=None, label="default") |
def | __set__ (self, instance, value, at=None, label='assignment') |
def | __delete__ (self, instance, at=None, label='deletion') |
Public Attributes | |
keytype | |
itemtype | |
dictCheck | |
itemCheck | |
![]() | |
keytype | |
itemtype | |
dictCheck | |
itemCheck | |
![]() | |
dtype | |
doc | |
default | |
check | |
optional | |
source | |
Static Public Attributes | |
DictClass = ConfigDict | |
![]() | |
DictClass = Dict | |
![]() | |
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.
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.