finesse.script.spec.add_name_to_other_names

finesse.script.spec.add_name_to_other_names(name: str, kwargs: dict) dict[source]

For ‘make_element’ and ‘make_analysis’, adds the name of the python class to the list of ‘other_names’, which get added in ‘ItemAdapter’ to the list of aliases. Allows ‘Xaxis’ to be recognized as ‘xaxis’ and ‘Beamsplitter’ as ‘beamsplitter’.

Parameters
cls_namestr

Name of the class

kwargsdict

kwargs meant to be passed to ItemAdapter

Returns
dict

kwargs with ‘other_names’ modified to include the class name.