finesse.script.spec.KatSpec.register_element¶
- KatSpec.register_element(adapter, **kwargs)[source]¶
Add parser and generator support for a model element such as a component or detector.
- Parameters:
- adapter
ItemAdapter
The element adapter.
- adapter
- Other Parameters:
- overwritebool, optional
Overwrite elements with the same aliases, if present. If False and one of adapter’s aliases already exists, a
KeyError
is raised. Defaults to False.