-
Notifications
You must be signed in to change notification settings - Fork 5
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
Move particle definitions from QEDprocesses.jl to QEDbase.jl #25
Conversation
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.
Mostly minor things.
@AntonReinhard could you please rebase to the latest |
Co-authored-by: Uwe Hernandez Acosta <[email protected]>
1735e72
to
b2c6f2f
Compare
@SimeonEhrig The formatter works like charm 😸 |
Co-authored-by: Tom Jungnickel <[email protected]>
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.
Ready to merge
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.
I have a few questions and comments left.
!!! note "ParticleDirection Interface" | ||
Besides being a subtype of [`ParticleDirection`](@ref), `Incoming` has | ||
|
||
```julia |
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.
Why is there duplication of the implementation in the documentation?
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.
That's true, might be better to just @Ref
the functions instead.
""" | ||
function _spin_index(::AbstractDefiniteSpin) end | ||
_spin_index(::SpinUp) = 1 | ||
_spin_index(::SpinDown) = 2 |
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.
Weird!
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.
The reason this exists is explained in the comment, it is not exported, and Uwe has already said he will look at this again at a later date.
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.
Well, I actually meant that from my point of view SpinDown=2 is the most abstruse definition one could have come up with. But never mind. I guess there are reasons that I just don't know.
true | ||
``` | ||
""" | ||
struct PolarizationX <: AbstractDefinitePolarization end |
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.
Wasn't this supposed to be called Polarization1?
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.
Was it? @szabo137
""" | ||
Abstract base type for fermions as distinct from [`AntiFermion`](@ref)s. | ||
|
||
!!! note "particle interface" |
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.
Again, is it necessary to duplicate the actual implementation here?
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.
I think these comments are somewhat helpful, it's just that yes, the implementations are so short that the documentation will be equal to the implementation.
Thoughts @szabo137 ?
Co-authored-by: Anton Reinhard <[email protected]> Co-authored-by: AntonReinhard <[email protected]> Co-authored-by: Uwe Hernandez Acosta <[email protected]> Co-authored-by: Tom Jungnickel <[email protected]>
No description provided.