ConfigurableActionField#
- class lsst.pex.config.configurableActions.ConfigurableActionField(doc, dtype=<class 'lsst.pex.config.configurableActions._configurableAction.ConfigurableAction'>, default=None, check=None, deprecated=None)#
Bases:
ConfigField[ActionTypeVar]ConfigurableActionFieldis a subclass ofFieldthat allows a singleConfigurableAction(or a subclass) to be assigned to it. TheConfigurableActionis then accessed through this field for further configuration.Any configuration of this field that is done prior to having a new
ConfigurableActionassigned to it is forgotten.Parameters#
- doc
str Documentation string.
- dtype
ConfigurableAction Data type to use for this field.
- default
lsst.pex.config.Config, optional If default is
None, the field will default to a default-constructed instance ofdtype. Additionally, to allow for fewer deep-copies, assigning an instance ofConfigFieldtodtypeitself is considered equivalent to assigning a default-constructed sub-config. This means that the argument default can bedtype, as well as an instance ofdtype.- check
Callable, optional A callback function that validates the field’s value, returning
Trueif the value is valid, andFalseotherwise.- deprecated
boolorNone, optional A description of why this Field is deprecated, including removal date. If not
None, the string is appended to the docstring for this Field.
Methods Summary
save(outfile, instance)Save this field to a file (for internal use only).
Methods Documentation
- save(outfile, instance)#
Save this field to a file (for internal use only).
Parameters#
Notes#
This method is invoked by the
Configobject that contains this field and should not be called directly.The output consists of the documentation string (
lsst.pex.config.Field.doc) formatted as a Python comment. The second line is formatted as an assignment:{fullname}={value}.This output can be executed with Python.
- doc