ocelot
ocelot copied to clipboard
Add exact drift element and map
Pull request includes exact drift element, map, and test cases. Tracking results match MADX. Also, small fix to coupler kick, such that it is not used when no energy is specified.
Weirdly, many unrelated tests fail due to numerical precision issues, i.e.
r_matrix - matrix element (0, 5)\n value is "3.469446951953614e-17"\n reference value is "2.6237692574149207e-17"\n tolerance is "1e-07"\n tolerance type is "relative"
in unit_tests\ebeam_test\acc_utils\acc_utils_test.py:14
I suspect this is due to platform/BLAS library differences, but please double check.
Hi Nikita, thanks for the pull request. We'll look at it after the major code refactoring we're doing right now.