Public Member Functions | |
| __call__ (self) | |
| validate (self) | |
Public Member Functions inherited from lsst.pex.config.configurableActions._configurableAction.ConfigurableAction | |
| __setattr__ (self, attr, value, at=None, label="assignment") | |
| Any | __call__ (self, *Any args, **Any kwargs) |
| ConfigurableAction | copy (self) |
Public Member Functions inherited from lsst.pex.config.config.Config | |
| __iter__ (self) | |
| keys (self) | |
| values (self) | |
| items (self) | |
| __contains__ (self, name) | |
| __new__ (cls, *args, **kw) | |
| __reduce__ (self) | |
| setDefaults (self) | |
| update (self, **kw) | |
| load (self, filename, root="config") | |
| loadFromStream (self, stream, root="config", filename=None, extraLocals=None) | |
| loadFromString (self, code, root="config", filename=None, extraLocals=None) | |
| save (self, filename, root="config") | |
| saveToString (self, skipImports=False) | |
| saveToStream (self, outfile, root="config", skipImports=False) | |
| freeze (self) | |
| toDict (self) | |
| names (self) | |
| formatHistory (self, name, **kwargs) | |
| __setattr__ (self, attr, value, at=None, label="assignment") | |
| __delattr__ (self, attr, at=None, label="deletion") | |
| __eq__ (self, other) | |
| __ne__ (self, other) | |
| __str__ (self) | |
| __repr__ (self) | |
| compare (self, other, shortcut=True, rtol=1e-8, atol=1e-8, output=None) | |
| __init_subclass__ (cls, **kwargs) | |
Public Member Functions inherited from lsst.pex.config.config.ConfigMeta | |
| __init__ (cls, name, bases, dict_) | |
| __setattr__ (cls, name, value) | |
Static Public Attributes | |
| var = Field(doc="test field", dtype=int, default=0) | |
Static Public Attributes inherited from lsst.pex.config.configurableActions._configurableAction.ConfigurableAction | |
| str | identity = None |
Additional Inherited Members | |
Protected Member Functions inherited from lsst.pex.config.config.Config | |
| tuple[ResourcePath|None, str] | _filename_to_resource (self, ResourcePathExpression|None filename=None) |
| _loadFromString (self, code, root="config", filename=None, extraLocals=None) | |
| _save (self, outfile) | |
| _collectImports (self) | |
| _rename (self, name) | |
| _fromPython (cls, config_py) | |
Protected Attributes inherited from lsst.pex.config.config.Config | |
| bool | _frozen = True |
| _name = name | |
Protected Attributes inherited from lsst.pex.config.config.ConfigMeta | |
| dict | _fields = {} |
| _source = getStackFrame() | |
Static Protected Attributes inherited from lsst.pex.config.config.Config | |
| dict | _storage [str, Any] |
| dict | _history [str, list[Any]] |
| set | _imports [Any] |
Properties inherited from lsst.pex.config.config.Config | |
| history = property(lambda x: x._history) | |
Configurable Action Test 1.
| lsst.pex.config.configurableActions.tests.ActionTest1.validate | ( | self | ) |
Validate the Config, raising an exception if invalid.
Raises
------
lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes
-----
The base class implementation performs type checks on all fields by
calling their `~lsst.pex.config.Field.validate` methods.
Complex single-field validation can be defined by deriving new Field
types. For convenience, some derived `lsst.pex.config.Field`-types
(`~lsst.pex.config.ConfigField` and
`~lsst.pex.config.ConfigChoiceField`) are defined in
``lsst.pex.config`` that handle recursing into subconfigs.
Inter-field relationships should only be checked in derived
`~lsst.pex.config.Config` classes after calling this method, and base
validation is complete.
Reimplemented from lsst.pex.config.config.Config.