desy-ml / cheetah

Fast and differentiable particle accelerator optics simulation for reinforcement learning and optimisation applications.
https://cheetah-accelerator.readthedocs.io
GNU General Public License v3.0
28 stars 13 forks source link

Device error #26

Closed FelixTheilen closed 1 year ago

FelixTheilen commented 1 year ago

This pull request adresses issue #19 . A exception is defined in line 20 to 26. The exception is called in the function 'call' of the baseclass 'element', if the accelerator segment is not calculated by the cpu and the beam is a parameter beam.