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 | validate |
def | __set__ |
def | toDict |
Public Attributes | |
listCheck | |
itemCheck | |
itemtype | |
length | |
minLength | |
maxLength | |
Private Member Functions | |
def | _compare |
Defines a field which is a container of values of type dtype If length is not None, then instances of this field must match this length exactly. If minLength is not None, then instances of the field must be no shorter then minLength If maxLength is not None, then instances of the field must be no longer than maxLength Additionally users can provide two check functions: listCheck - used to validate the list as a whole, and itemCheck - used to validate each item individually
Definition at line 141 of file listField.py.
def lsst.pex.config.listField.ListField.__init__ | ( | self, | |
doc, | |||
dtype, | |||
default = None , |
|||
optional = False , |
|||
listCheck = None , |
|||
itemCheck = None , |
|||
length = None , |
|||
minLength = None , |
|||
maxLength = None |
|||
) |
Definition at line 158 of file listField.py.
def lsst.pex.config.listField.ListField.__set__ | ( | self, | |
instance, | |||
value, | |||
at = None , |
|||
label = "assignment" |
|||
) |
|
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 232 of file listField.py.
def lsst.pex.config.listField.ListField.toDict | ( | self, | |
instance | |||
) |
Definition at line 228 of file listField.py.
def lsst.pex.config.listField.ListField.validate | ( | self, | |
instance | |||
) |
ListField validation ensures that non-optional fields are not None, and that non-None values comply with length requirements and that the list passes listCheck if supplied by the user. Individual Item checks are applied at set time and are not re-checked.
Definition at line 188 of file listField.py.
lsst.pex.config.listField.ListField.itemCheck |
Definition at line 181 of file listField.py.
lsst.pex.config.listField.ListField.itemtype |
Definition at line 182 of file listField.py.
lsst.pex.config.listField.ListField.length |
Definition at line 183 of file listField.py.
lsst.pex.config.listField.ListField.listCheck |
Definition at line 180 of file listField.py.
lsst.pex.config.listField.ListField.maxLength |
Definition at line 185 of file listField.py.
lsst.pex.config.listField.ListField.minLength |
Definition at line 184 of file listField.py.