Skip to content

Commit

Permalink
Turn jldoctests on again
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Jun 27, 2024
1 parent 9339e4d commit cbe1f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/phase_spaces/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Representation of a particle with a state. It has four fields:
Overloads for `is_fermion`, `is_boson`, `is_particle`, `is_anti_particle`, `is_incoming`, `is_outgoing`, `mass`, and `charge` are provided, delegating the call to the correct field and thus implementing the `AbstractParticle` interface.
TODO: Turn this back into a `jldoctest` once refactoring is done.
```jldoctest
julia> using QEDcore; using QEDbase
Expand Down Expand Up @@ -76,7 +75,6 @@ Representation of a point in the phase space of a process. Contains the process
The legality of the combination of the given process and the incoming and outgoing particles is checked on construction. If the numbers of particles mismatch, the types of particles mismatch (note that order is important), or incoming particles have an `Outgoing` direction, an error is thrown.
TODO: Turn this back into a `jldoctest` once refactoring is done.
```jldoctest
julia> using QEDcore; using QEDbase; using QEDprocesses
Expand Down
5 changes: 2 additions & 3 deletions src/phase_spaces/utility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,15 @@ end
Returns the element type of the [`PhaseSpacePoint`](@ref) object or type, e.g. `SFourMomentum`.
TODO: Turn this back into a `jldoctest` once refactoring is done.
```jldoctest
julia> using QEDcore; using QEDprocesses
julia> psp = PhaseSpacePoint(Compton(), PerturbativeQED(), PhasespaceDefinition(SphericalCoordinateSystem(), ElectronRestFrame()), Tuple(rand(SFourMomentum) for _ in 1:2), Tuple(rand(SFourMomentum) for _ in 1:2));
julia> _momentum_type(psp)
julia> QEDcore._momentum_type(psp)
SFourMomentum
julia> _momentum_type(typeof(psp))
julia> QEDcore._momentum_type(typeof(psp))
SFourMomentum
```
"""
Expand Down

0 comments on commit cbe1f62

Please sign in to comment.