bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
11 stars 13 forks source link

Tao regression/unit tests needed #1162

Open mattsignorelli opened 2 weeks ago

mattsignorelli commented 2 weeks ago

A test suite for Tao is necessary.

Even just one single lattice where all the correct values are stored and compared during each test run would go a long way with preventing new bugs from creeping in. E.g., take the ESR lattice and store the correct output for show lat * -at beta_a@f20.16 .... etc for as many lattice functions as possible, and the test should compare that against the known values.

Same for show uni, show spin, show chrom, etc...

DavidSagan commented 2 weeks ago

This will be a bit of work but it is needed.

mattsignorelli commented 2 weeks ago

If we set up some pytest CI we could use PyTao

ken-lauer commented 2 weeks ago

I have intentions of getting pytao's test suite itself running on new commits and releases for this repository (bmad-sim/bmad-ecosystem) to help with Tao's pipe (=python) command regressions/changes. It could also help to address this issue, I think.