Closed jp-ga closed 2 weeks ago
I was checking dipole.py and saw this: https://github.com/desy-ml/cheetah/blob/ff3430b25dac3d62c8515313d014d29fafff6b02/cheetah/accelerator/dipole.py#L77
dipole.py
It might be overwriting the name generated from the Element class init : https://github.com/desy-ml/cheetah/blob/ff3430b25dac3d62c8515313d014d29fafff6b02/cheetah/accelerator/element.py#L37
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.
I was checking
dipole.py
and saw this: https://github.com/desy-ml/cheetah/blob/ff3430b25dac3d62c8515313d014d29fafff6b02/cheetah/accelerator/dipole.py#L77It might be overwriting the name generated from the Element class init : https://github.com/desy-ml/cheetah/blob/ff3430b25dac3d62c8515313d014d29fafff6b02/cheetah/accelerator/element.py#L37