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

Enable jldoctest for base_state #92

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/interfaces/particle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ Return the propagator of a particle for a given four-momentum. If `mass` is pass
"""
function propagator end

# TODO: Turn the doctest on again when QEDcore has QEDprocesses functionality
"""
```julia
base_state(
Expand Down Expand Up @@ -174,8 +173,7 @@ mom = SFourMomentum(E, px, py, pz) # initialize the four-momentum of the el
electron_state = base_state(QEDcore.Electron(), Incoming(), mom, SpinUp())
```

TODO: Reenable doctests
```Julia
```jldoctest
julia> using QEDbase; using QEDcore

julia> mass = 1.0; px,py,pz = (0.1, 0.2, 0.3); E = sqrt(px^2 + py^2 + pz^2 + mass^2); mom = SFourMomentum(E, px, py, pz)
Expand Down
Loading