LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ |
def | __get__ |
def | __set__ |
def | rename |
def | save |
def | freeze |
def | toDict |
def | validate |
Private Member Functions | |
def | _compare |
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 29 of file configField.py.
def lsst.pex.config.configField.ConfigField.__init__ | ( | self, | |
doc, | |||
dtype, | |||
default = None , |
|||
check = None |
|||
) |
Definition at line 48 of file configField.py.
def lsst.pex.config.configField.ConfigField.__get__ | ( | self, | |
instance, | |||
owner = None |
|||
) |
Definition at line 58 of file configField.py.
def lsst.pex.config.configField.ConfigField.__set__ | ( | self, | |
instance, | |||
value, | |||
at = None , |
|||
label = "assignment" |
|||
) |
Definition at line 68 of file configField.py.
|
private |
Helper function for Config.compare; used to compare two fields for equality. @param[in] instance1 LHS Config instance to compare. @param[in] instance2 RHS Config instance to compare. @param[in] shortcut If True, return as soon as an inequality is found. @param[in] rtol Relative tolerance for floating point comparisons. @param[in] atol Absolute tolerance for floating point comparisons. @param[in] output If not None, a callable that takes a string, used (possibly repeatedly) to report inequalities. Floating point comparisons are performed by numpy.allclose; refer to that for details.
Definition at line 121 of file configField.py.
def lsst.pex.config.configField.ConfigField.freeze | ( | self, | |
instance | |||
) |
Definition at line 105 of file configField.py.
def lsst.pex.config.configField.ConfigField.rename | ( | self, | |
instance | |||
) |
Definition at line 97 of file configField.py.
def lsst.pex.config.configField.ConfigField.save | ( | self, | |
outfile, | |||
instance | |||
) |
Definition at line 101 of file configField.py.
def lsst.pex.config.configField.ConfigField.toDict | ( | self, | |
instance | |||
) |
Definition at line 109 of file configField.py.
def lsst.pex.config.configField.ConfigField.validate | ( | self, | |
instance | |||
) |
Definition at line 113 of file configField.py.