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
30 stars 13 forks source link

Broadcasting of rectangular bending magnets fails #246

Closed Hespe closed 3 weeks ago

Hespe commented 3 weeks ago

Due to #235, broadcasting an RBend element currently fails. Potential solutions are to either

  1. include the focussing strength k1 in the RBend constructor, or
  2. to wait for #208 to enable automatic broadcasting, making the explicit broadcast_to() method obsolete.
Hespe commented 3 weeks ago

Closed in #247