desy-ml/cheetah

Dipole element name overwriting

jp-ga opened this issue · 1 comments

I was checking dipole.py and saw this:

self.name = name

It might be overwriting the name generated from the Element class init :

self.name = name if name is not None else generate_unique_name()

Yeah ... I think this is an issue and the line in dipole.py should be removed. We should also check if other elements do the same thing.