Name of gaussian element changes upon deepcopy()
the name of a gauss
element changes upon a deepcopy()
For example:
code = """
l laser 1.5 0 n0
gauss g1 laser n0 10m -1000
"""
kat1 = finesse.kat()
kat1.parse(code)
print(kat1)
kat2 = deepcopy(kat1)
print(kat2)
shows that in copy kat2 the gauss
element has changed name from g1
to g_n0
.
That leads to surprises if you then want to override (overwrite actually) that original gauss
(you'd get two elements).