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

BPM error #28

Closed FelixTheilen closed 1 year ago

FelixTheilen commented 1 year ago

This pull request is adressing issue #20 . The BPM element coulkd not handle parameter beams. This has been fixed through an additional elif statement. Also a TypeError is being raised, if the incoming beam is of invalid type.