-
Notifications
You must be signed in to change notification settings - Fork 28
[WIP] Distribution Arguments: snake_case & Default to Twiss? #1100
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
base: development
Are you sure you want to change the base?
[WIP] Distribution Arguments: snake_case & Default to Twiss? #1100
Conversation
Simplify usage & pick-up in dashboard. Straight forwarding of mean and dispersion parameters.
//AMREX_ALWAYS_ASSERT_WITH_MESSAGE(nslice > 0, | ||
// pp_element.getPrefix() + ".nslice must be > 0."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should not be included
- use consistent spelling of argument names - spell out abbrevations
532593e
to
24a974e
Compare
* @param meanx,meany,meant offsets of the mean (centroid) positions from those of the reference particle | ||
* @param meanpx,meanpy,meanpt offsets of the mean (centroid) momenta from those of the reference particle | ||
* @param dispx,disppx,dispy,disppy dispersion and its derivative in horizontal and vertical directions | ||
* @param lambda_x,lambda_y,lambda_t phase space axis intercepts (position); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay, this worked well with Cursor AI: I changed one distribution and told it to do the same change in the other 7 distributions 🎉
py::arg("meanPx")=0.0, py::arg("meanPy")=0.0, py::arg("meanPt")=0.0, | ||
py::arg("dispX")=0.0, py::arg("dispPx")=0.0, | ||
py::arg("dispY")=0.0, py::arg("dispPy")=0.0, | ||
py::arg("lambda_x"), py::arg("lambda_y"), py::arg("lambda_t"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could keep this file unchanged to avoid user breakage.
alpha_x=1.3385830279518021, | ||
alpha_y=-1.3479109197361046, | ||
alpha_t=92.624347459169869, | ||
dispX=-0.26669723385388505, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small break, just introduced in #1099
dispX=-0.26669723385388505, | |
dispersion_x=-0.26669723385388505, |
Proposing a few breaking changes for distributions for clarity, ease of use and potential change in defaults
Checklist
snake_case
: use consistent spelling of argument names, spell out abbreviations