lsst.pex.config
16.0-6-g0838257+1
|
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, 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 30 of file configField.py.
def lsst.pex.config.configField.ConfigField.__init__ | ( | self, | |
doc, | |||
dtype, | |||
default = None , |
|||
check = None |
|||
) |
Definition at line 49 of file configField.py.
|
inherited |
def lsst.pex.config.configField.ConfigField.__get__ | ( | self, | |
instance, | |||
owner = None |
|||
) |
Definition at line 59 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 70 of file configField.py.
def lsst.pex.config.configField.ConfigField.freeze | ( | self, | |
instance | |||
) |
Definition at line 106 of file configField.py.
def lsst.pex.config.configField.ConfigField.rename | ( | self, | |
instance | |||
) |
Definition at line 98 of file configField.py.
def lsst.pex.config.configField.ConfigField.save | ( | self, | |
outfile, | |||
instance | |||
) |
Definition at line 102 of file configField.py.
def lsst.pex.config.configField.ConfigField.toDict | ( | self, | |
instance | |||
) |
Definition at line 110 of file configField.py.
def lsst.pex.config.configField.ConfigField.validate | ( | self, | |
instance | |||
) |
Definition at line 114 of file configField.py.
|
staticinherited |