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

Establish testing #33

Closed FelixTheilen closed 1 year ago

FelixTheilen commented 1 year ago

This pull request is adressing issue #7 . There are still more tests needed to be implemented. This file is just the first. It is implementing the calculations done in the testless.ipynb file using pytest. This makes it a lot easier to run the test, as no manual comparison of the results is needed.

FelixTheilen commented 1 year ago

Created a file which is implementing the actions performed in testtime.ipynb in pytest.