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

Add convenience constructors for particle statefuls #33

Merged
merged 1 commit into from
Jul 13, 2024
Merged

Conversation

AntonReinhard
Copy link
Member

This PR adds convenience constructors which are helpful when juggling the types around and wanting to construct a ParticleStateful from them. If T is a fully specialized ParticleStateful{DIR, SPECIES, ELTYPE}, before you would have had to extract the DIR and SPECIES to call the constructor, now you can simply do T(mom).

@AntonReinhard AntonReinhard requested a review from szabo137 July 5, 2024 12:15
@AntonReinhard
Copy link
Member Author

As a note: I added the functions to QEDcore instead of in QEDbase on the AbstractParticleStateful type because the constructor isn't part of the interface.

@AntonReinhard
Copy link
Member Author

Integration test for QEDprocesses fails because QEDprocesses relies on QEDjl-project/QEDbase.jl#87 which is not released yet.

@SimeonEhrig
Copy link
Member

Integration test for QEDprocesses fails because QEDprocesses relies on QEDjl-project/QEDbase.jl#87 which is not released yet.

Is it related to this issue? QEDjl-project/QuantumElectrodynamics.jl#36

@AntonReinhard
Copy link
Member Author

@szabo137 ping

Copy link
Member

@szabo137 szabo137 left a comment

Choose a reason for hiding this comment

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

Thanks for providing this, it will come in handy 🙆‍♂️

Looks good for me, I just added some informative comments 🤷‍♂️

Feel free to merge.

src/phase_spaces/create.jl Show resolved Hide resolved
src/phase_spaces/create.jl Show resolved Hide resolved
@szabo137 szabo137 merged commit daf0567 into dev Jul 13, 2024
3 checks passed
@AntonReinhard AntonReinhard deleted the ps_convenience branch July 13, 2024 12:38
@AntonReinhard AntonReinhard added this to the Release 0.1.0 milestone Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants