Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed May 21, 2024
1 parent 6deedcc commit 3b479ab
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/phase_spaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,10 @@ julia> using QEDbase; using QEDprocesses
julia> ParticleStateful(Incoming(), Electron(), SFourMomentum(1, 0, 0, 0))
ParticleStateful: incoming electron
spin: all spins
momentum: [1.0, 0.0, 0.0, 0.0]
julia> ParticleStateful(Outgoing(), Photon(), SFourMomentum(1, 0, 0, 0), PolX())
julia> ParticleStateful(Outgoing(), Photon(), SFourMomentum(1, 0, 0, 0))
ParticleStateful: outgoing photon
polarization: x-polarized
momentum: [1.0, 0.0, 0.0, 0.0]
```
"""
Expand Down Expand Up @@ -225,25 +223,25 @@ julia> PhaseSpacePoint(
Compton(),
PerturbativeQED(),
PhasespaceDefinition(SphericalCoordinateSystem(), ElectronRestFrame()),
[
(
ParticleStateful(Incoming(), Electron(), SFourMomentum(1, 0, 0, 0)),
ParticleStateful(Incoming(), Photon(), SFourMomentum(1, 0, 0, 0))
],
[
),
(
ParticleStateful(Outgoing(), Electron(), SFourMomentum(1, 0, 0, 0)),
ParticleStateful(Outgoing(), Photon(), SFourMomentum(1, 0, 0, 0))
]
)
)
PhaseSpacePoint:
process: one-photon Compton scattering
model: perturbative QED
phasespace definition: spherical coordinates in electron rest frame
incoming particles:
-> incoming electron (all spins): [1.0, 0.0, 0.0, 0.0]
-> incoming photon (all polarizations): [1.0, 0.0, 0.0, 0.0]
-> incoming electron: [1.0, 0.0, 0.0, 0.0]
-> incoming photon: [1.0, 0.0, 0.0, 0.0]
outgoing particles:
-> outgoing electron (all spins): [1.0, 0.0, 0.0, 0.0]
-> outgoing photon (all polarizations): [1.0, 0.0, 0.0, 0.0]
-> outgoing electron: [1.0, 0.0, 0.0, 0.0]
-> outgoing photon: [1.0, 0.0, 0.0, 0.0]
```
"""
struct PhaseSpacePoint{
Expand Down

0 comments on commit 3b479ab

Please sign in to comment.