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

Initialisation of the harmonic number #401

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Initialisation of the harmonic number #401

merged 3 commits into from
Apr 29, 2022

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Apr 20, 2022

@simoneliuzzo and @swhite2401 pointed out in #391 a problem with the harmonic_number Lattice attribute. It is properly initialised when creating a lattice, but not when a lattice is modified: if the attribute does not exist initially (no cavity in the lattice), it is not added if a cavity is added to the lattice. This concerns the following actions:

  • insert, append and extend methods,
  • + and += operators.

This is corrected here, as well as updating properly the radiation property in the same events.

@lfarv lfarv added Python For python AT code bug fix labels Apr 20, 2022
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.

Ok for me

@lfarv lfarv merged commit 7cd118f into master Apr 29, 2022
@lfarv lfarv deleted the harm_number branch April 29, 2022 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants