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

Fix ohmienvelope with wigglers #870

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Fix ohmienvelope with wigglers #870

merged 2 commits into from
Dec 11, 2024

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Dec 11, 2024

Fixes #869. ohmienvelope fails with wigglers because of a typo in passmethod names

This also includes similar bug fixes in the same files in #868 and #866

@lfarv lfarv added Python For python AT code bug fix labels Dec 11, 2024
@lfarv lfarv requested a review from swhite2401 December 11, 2024 13:50
@lfarv lfarv requested a review from oscarxblanco December 11, 2024 13:57
@lfarv lfarv added the Matlab For Matlab/Octave AT code label Dec 11, 2024
Copy link
Contributor

@swhite2401 swhite2401 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very fast, thanks!

@lfarv
Copy link
Contributor Author

lfarv commented Dec 11, 2024

@swhite2401 : did you check your test file ? I don't have a test file immediately available…

@lfarv
Copy link
Contributor Author

lfarv commented Dec 11, 2024

All this shows the drawback of having hard-coded passmethod names… Too bad that there is no other way!

@swhite2401
Copy link
Contributor

I haven't test this specific branch but I fixed the passmethod name in my test branch and it works so on my side it is fine

@lfarv lfarv merged commit 3777663 into master Dec 11, 2024
23 checks passed
@lfarv lfarv deleted the fix_wiggler_ohmienvelope branch December 11, 2024 14:43
@swhite2401
Copy link
Contributor

All this shows the drawback of having hard-coded passmethod names… Too bad that there is no other way!

We could make an enum somewhere that maps the passmethod names to centralizes in only one place the hard-coded names. This would mitigate this sort of typos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Matlab For Matlab/Octave AT code Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ohmi_envelope() fails with wiggler element
2 participants