RegistryField#
- class lsst.pex.config.RegistryField(doc, registry, default=None, optional=False, multi=False, on_none=None)#
Bases:
ConfigChoiceFieldA configuration field whose options are defined in a
Registry.Parameters#
- doc
str A description of the field.
- registry
Registry The registry that contains this field.
- default
str, optional The default target key.
- optional
bool, optional When
False,lsst.pex.config.Config.validatefails if the field’s value isNone.- multi
bool, optional If
True, the field allows multiple selections. The default isFalse.- on_none
Callable, optional A callable that should be invoked when
applyis called but the selected name or names isNone. Will be passed the field attribute proxy (RegistryInstanceDict) and then all positional and keyword arguments passed toapply.
See Also#
ChoiceField ConfigChoiceField ConfigDictField ConfigField ConfigurableField DictField Field ListField RangeField
- doc