Skip to content

Commit

Permalink
Move propagator and phase space tests to QEDcore
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Jun 12, 2024
1 parent 47100dc commit f93094f
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 368 deletions.
9 changes: 2 additions & 7 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
name = "QEDprocesses"
uuid = "46de9c38-1bb3-4547-a1ec-da24d767fdad"
authors = [
"Uwe Hernandez Acosta <u.hernandez@hzdr.de>",
"Simeon Ehrig",
"Klaus Steiniger",
"Tom Jungnickel",
"Anton Reinhard",
]
authors = ["Uwe Hernandez Acosta <u.hernandez@hzdr.de>", "Simeon Ehrig", "Klaus Steiniger", "Tom Jungnickel", "Anton Reinhard"]
version = "0.1.0"

[deps]
QEDbase = "10e22c08-3ccb-4172-bfcf-7d7aa3d04d93"
QEDcore = "35dc0263-cb5f-4c33-a114-1d7f54ab753e"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

Expand Down
9 changes: 1 addition & 8 deletions src/QEDprocesses.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ export PerturbativeQED
export Compton, omega_prime

using QEDbase
using QEDcore
using StaticArrays
using QuadGK

include("constants.jl")
include("utils.jl")

include("phase_spaces/types.jl")
include("phase_spaces/access.jl")
include("phase_spaces/create.jl")
include("phase_spaces/print.jl")
include("phase_spaces/utility.jl")

include("propagators.jl")

include("cross_section/diff_probability.jl")
include("cross_section/diff_cross_section.jl")
include("cross_section/total_probability.jl")
Expand Down
25 changes: 0 additions & 25 deletions src/patch_QEDbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,3 @@
# remove if this went into `QEDbase.jl`
#
#############

# fix: https://github.com/QEDjl-project/QEDbase.jl/pull/61
Base.show(io::IO, ::Electron) = print(io, "electron")
Base.show(io::IO, ::Positron) = print(io, "positron")
Base.show(io::IO, ::Photon) = print(io, "photon")
Base.show(io::IO, ::Incoming) = print(io, "incoming")
Base.show(io::IO, ::Outgoing) = print(io, "outgoing")
Base.show(io::IO, ::PolX) = print(io, "x-polarized")
Base.show(io::IO, ::PolY) = print(io, "y-polarized")
Base.show(io::IO, ::AllPol) = print(io, "all polarizations")
Base.show(io::IO, ::SpinUp) = print(io, "spin up")
Base.show(io::IO, ::SpinDown) = print(io, "spin down")
Base.show(io::IO, ::AllSpin) = print(io, "all spins")

# fix: https://github.com/QEDjl-project/QEDbase.jl/pull/62
Broadcast.broadcastable(dir::Incoming) = Ref(dir)
Broadcast.broadcastable(dir::Outgoing) = Ref(dir)
Broadcast.broadcastable(part::AbstractParticleType) = Ref(part)
Broadcast.broadcastable(spin_or_pol::AbstractSpinOrPolarization) = Ref(spin_or_pol)

# fix: https://github.com/QEDjl-project/QEDbase.jl/pull/63
number_of_spin_pol(::AbstractDefinitePolarization) = 1
number_of_spin_pol(::AbstractDefiniteSpin) = 1
number_of_spin_pol(::AbstractIndefinitePolarization) = 2
number_of_spin_pol(::AbstractIndefiniteSpin) = 2
35 changes: 0 additions & 35 deletions src/propagators.jl

This file was deleted.

260 changes: 0 additions & 260 deletions test/phase_spaces.jl

This file was deleted.

26 changes: 0 additions & 26 deletions test/propagators.jl

This file was deleted.

Loading

0 comments on commit f93094f

Please sign in to comment.