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

Loading and saving from lattices #9

Closed jank324 closed 1 year ago

jank324 commented 1 year ago

🚀 Feature Request

It should be possible to save (and load) lattices as something other than Python code. One idea would be to save to .yaml or something else that has reasonable compatibility.

Motivation

This just makes maintaining lattices easier and removes them from source code.

Suggested by @cr-xu in #4.

jank324 commented 1 year ago

Here is a good suggestion to to this in a "more standardised" way: https://github.com/nobeam/latticejson