-
Notifications
You must be signed in to change notification settings - Fork 20
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
Change distribution default parameters to Twiss in dashboard #748
Change distribution default parameters to Twiss in dashboard #748
Conversation
As far as the |
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 is great! The main feature missing is the display of units for the distribution inputs. For example, beta_x, beta_y, beta_t, and emittance_x, emittance_y, emittance_t all have units of meters (m), while alpha_x, alpha_y, alpha_t are unitless.
Twiss is now default, 'Native' changed to 'Quadratic Form' and placed as secondary option
Helper function moved to distributionFuntions.py, and simplified code structure. no functionality change
…ameters Thermal is set to have a single set of parameters - 'k', 'kT', 'kT_halo', 'normali ze', 'normalize_halo', halo'
6e687d0
to
7d8151f
Compare
This PR updates the primary option for beam distribution configurations to "Twiss". The previously primary set, "Native," has been renamed to "Quadratic Form" and is now available as an alternative parameterization for users.
In addition, this PR makes minor adjustments to the code structure and docstrings within the beam distribution section. These changes do not affect functionality.
Tested with this example to ensure correct functionality.
Checklist
I noticed that all beta/emitt parameters must have non-zero values, but this validation is missing in the current PR. PR #690 includes a modified helper function with built-in validation capabilities for non-zero values. Better to either include beta/emitt validation in that PR or in a new one once #690 is merged.
Resolves #724