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:
adapterItemAdapter

The element 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.