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

Fix `__eq__` check for Segment #57

Closed cr-xu closed 1 year ago

cr-xu commented 1 year ago

Problem: the default __eq__ only checks for equality in attributes. For Segment this behavior is not ideal.

Changes:

cr-xu commented 1 year ago

Sorry I forgot to mark #56 as still a work in progress 🙃

jank324 commented 1 year ago

Ups ... 🙃