Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Hernandez Acosta committed Mar 26, 2024
1 parent 058b4f2 commit 2d0bce3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
9 changes: 2 additions & 7 deletions src/QEDprocesses.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
module QEDprocesses

# constants
export
ALPHA,
ALPHA_SQUARE,
ELEMENTARY_CHARGE,
ELEMENTARY_CHARGE_SQUARE,
ELECTRONMASS,
ONE_OVER_FOURPI
export ALPHA,
ALPHA_SQUARE, ELEMENTARY_CHARGE, ELEMENTARY_CHARGE_SQUARE, ELECTRONMASS, ONE_OVER_FOURPI

# Abstract model interface
export AbstractModelDefinition, fundamental_interaction_type
Expand Down
7 changes: 2 additions & 5 deletions src/models/perturbative_qed.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


struct PerturbativeQED <: AbstractModelDefinition end

fundamental_interaction_type(::PerturbativeQED) = :electromagnetic
Expand All @@ -16,11 +15,9 @@ Return the number of degrees of freedom to determine the incoming phase space fo
"""
function in_phase_space_dimension(proc::AbstractProcessDefinition, ::PerturbativeQED)
return 3 * number_incoming_particles(proc) - 4 - 1
return 3 * number_incoming_particles(proc) - 4 - 1
end

function out_phase_space_dimension(proc::AbstractProcessDefinition, ::PerturbativeQED)
return 3 * number_outgoing_particles(proc) - 4
return 3 * number_outgoing_particles(proc) - 4
end


1 change: 0 additions & 1 deletion src/processes/one_photon_compton/one_photon_compton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
export Compton
export omega_prime


include("process.jl")
include("perturbative/kinematics.jl")
include("perturbative/cross_section.jl")
2 changes: 1 addition & 1 deletion test/processes/one_photon_compton/process.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using QEDprocesses
using QEDprocesses
using Random
using QEDbase
using QEDprocesses
Expand Down
12 changes: 6 additions & 6 deletions test/processes/run_process_test.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

@time @safetestset "general one photon compton" begin
include("one_photon_compton/process.jl")
end
@time @safetestset "general one photon compton" begin
include("one_photon_compton/process.jl")
end

@time @safetestset "perturbative one photon compton" begin
include("one_photon_compton/perturbative.jl")
end
@time @safetestset "perturbative one photon compton" begin
include("one_photon_compton/perturbative.jl")
end

0 comments on commit 2d0bce3

Please sign in to comment.