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

DeviceError #32

Closed FelixTheilen closed 1 year ago

FelixTheilen commented 1 year ago

This pull request adresses issue #19 . An exception Device Error is defined. This exception is called in the function 'call' of the baseclass 'element', in case the device for calculating the segment differs from the device used to calculate the Beam.

I accidentally pushed some. idea files in the previous pull request as i tried to push a commit via git from my local projekt. This should be fixed now.