lsst.pex.config
14.0-2-g319577b+13
|
Public Member Functions | |
def | __init__ (self, doc, dtype, default=None, check=None) |
def | __get__ (self, instance, owner=None) |
def | __set__ (self, instance, value, at=None, label="assignment") |
def | rename (self, instance) |
def | save (self, outfile, instance) |
def | freeze (self, instance) |
def | toDict (self, instance) |
def | validate (self, instance) |
def | __get__ (self, instance, owner=None, at=None, label="default") |
def | __delete__ (self, instance, at=None, label='deletion') |
Public Attributes | |
dtype | |
doc | |
default | |
check | |
optional | |
source | |
Static Public Attributes | |
supportedTypes = set((str, unicode, basestring, oldStringType, bool, float, int, complex)) | |
Defines a field which is itself a Config. The behavior of this type of field is much like that of the base Field type. Note that dtype must be a subclass of Config. If default=None, the field will default to a default-constructed instance of dtype. Additionally, to allow for fewer deep-copies, assigning an instance of ConfigField to dtype itself, is considered equivalent to assigning a default-constructed sub-config. This means that the argument default can be dtype, as well as an instance of dtype. Assigning to ConfigField will update all of the fields in the config.
Definition at line 31 of file configField.py.
def lsst.pex.config.configField.ConfigField.__init__ | ( | self, | |
doc, | |||
dtype, | |||
default = None , |
|||
check = None |
|||
) |
Definition at line 50 of file configField.py.
|
inherited |
def lsst.pex.config.configField.ConfigField.__get__ | ( | self, | |
instance, | |||
owner = None |
|||
) |
Definition at line 60 of file configField.py.
|
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.
def lsst.pex.config.configField.ConfigField.__set__ | ( | self, | |
instance, | |||
value, | |||
at = None , |
|||
label = "assignment" |
|||
) |
Definition at line 71 of file configField.py.
def lsst.pex.config.configField.ConfigField.freeze | ( | self, | |
instance | |||
) |
Definition at line 107 of file configField.py.
def lsst.pex.config.configField.ConfigField.rename | ( | self, | |
instance | |||
) |
Definition at line 99 of file configField.py.
def lsst.pex.config.configField.ConfigField.save | ( | self, | |
outfile, | |||
instance | |||
) |
Definition at line 103 of file configField.py.
def lsst.pex.config.configField.ConfigField.toDict | ( | self, | |
instance | |||
) |
Definition at line 111 of file configField.py.
def lsst.pex.config.configField.ConfigField.validate | ( | self, | |
instance | |||
) |
Definition at line 115 of file configField.py.
|
staticinherited |