Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the safer lattice_pass instead of atpass in tests #322

Merged
merged 2 commits into from
Oct 25, 2021
Merged

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Oct 22, 2021

Except for test_atpass.py, which of course still tests atpass, the test sequence use the safer "public" interface for tracking: lattice_pass instead of atpass (with the same arguments).
Tracking lattices with a single element (atpass([elem],...) is replaced by direct tracking through the element (element_pass(elem,...))

lattice_pass makes some coherence checks (Fortran-ordering of data for instance) before calling atpass. In the future, atpass may be turned into a private function, with a deprecation warning for existing code.

For the moment, this PR does not change anything, neither on AT use, nor on the test sequence.

@lfarv lfarv added the Python For python AT code label Oct 22, 2021
@lfarv
Copy link
Contributor Author

lfarv commented Oct 22, 2021

There is a problem with elempass in python 3.6. After installing it, I can reproduce the problem here.
So I put the PR on hold until it solved.

@lfarv lfarv marked this pull request as draft October 22, 2021 11:53
@lfarv lfarv requested review from swhite2401 and removed request for swhite2401 October 22, 2021 11:55
@lfarv lfarv marked this pull request as ready for review October 22, 2021 13:07
@lfarv
Copy link
Contributor Author

lfarv commented Oct 22, 2021

Problem solved in at.c, ready for review

@lfarv lfarv merged commit 8d0587b into master Oct 25, 2021
@lfarv lfarv deleted the cleanup_tests branch October 25, 2021 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants