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 | validateTarget |
def | __init__ |
def | __get__ |
def | __set__ |
def | rename |
def | save |
def | freeze |
def | toDict |
def | validate |
def | __deepcopy__ |
Public Attributes | |
target | |
ConfigClass | |
Private Member Functions | |
def | __getOrMake |
def | _compare |
A variant of a ConfigField which has a known configurable target Behaves just like a ConfigField except that it can be 'retargeted' to point at a different configurable. Further you can 'apply' to construct a fully configured configurable.
Definition at line 139 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.__init__ | ( | self, | |
doc, | |||
target, | |||
ConfigClass = None , |
|||
default = None , |
|||
check = None |
|||
) |
@param target is the configurable target. Must be callable, and the first parameter will be the value of this field @param ConfigClass is the class of Config object expected by the target. If not provided by target.ConfigClass it must be provided explicitly in this argument
Definition at line 166 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.__deepcopy__ | ( | self, | |
memo | |||
) |
Customize deep-copying, because we always want a reference to the original typemap. WARNING: this must be overridden by subclasses if they change the constructor signature!
Definition at line 259 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.__get__ | ( | self, | |
instance, | |||
owner = None , |
|||
at = None , |
|||
label = "default" |
|||
) |
Definition at line 196 of file configurableField.py.
|
private |
Definition at line 187 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.__set__ | ( | self, | |
instance, | |||
value, | |||
at = None , |
|||
label = "assignment" |
|||
) |
Definition at line 202 of file configurableField.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 267 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.freeze | ( | self, | |
instance | |||
) |
Definition at line 243 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.rename | ( | self, | |
instance | |||
) |
Definition at line 222 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.save | ( | self, | |
outfile, | |||
instance | |||
) |
Definition at line 227 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.toDict | ( | self, | |
instance | |||
) |
Definition at line 247 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.validate | ( | self, | |
instance | |||
) |
Definition at line 251 of file configurableField.py.
def lsst.pex.config.configurableField.ConfigurableField.validateTarget | ( | self, | |
target, | |||
ConfigClass | |||
) |
Definition at line 150 of file configurableField.py.
lsst.pex.config.configurableField.ConfigurableField.ConfigClass |
Definition at line 185 of file configurableField.py.
lsst.pex.config.configurableField.ConfigurableField.target |
Definition at line 184 of file configurableField.py.