finesse.script.spec.BaseSpec.register_element

BaseSpec.register_element(*args, **kwargs)[source]

Add parser and generator support for a model element such as a component or detector.

Other Parameters

aliases : str or sequence

The element alias(es).

kwargs : mapping, optional

Keyword arguments to pass to the adapter constructor; defaults to None.

overwrite : bool, optional

Overwrite elements with the same aliases, if present. Defaults to False.