Skip to content

Commit

Permalink
Move imports to where they are used
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Jun 21, 2024
1 parent b765a24 commit db551c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/QEDcore.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
module QEDcore

import Base: *
import StaticArrays: similar_type
import QEDbase: base_state

# lorentz vectors
export SLorentzVector, MLorentzVector

Expand Down
3 changes: 3 additions & 0 deletions src/algebraic_objects/dirac_tensors/multiplication.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Concrete implementation of multiplication for Dirac Tensors
#
#######

import Base: *

"""
$(TYPEDSIGNATURES)
Expand Down
1 change: 1 addition & 0 deletions src/algebraic_objects/four_momentum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#######

import QEDbase: getT, getX, getY, getZ, setT!, setX!, setY!, setZ!
import StaticArrays: similar_type

"""
$(TYPEDEF)
Expand Down
1 change: 1 addition & 0 deletions src/algebraic_objects/lorentz_vector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#######

import QEDbase: getT, getX, getY, getZ, setT!, setX!, setY!, setZ!
import StaticArrays: similar_type

#######
#
Expand Down
2 changes: 2 additions & 0 deletions src/particles/states.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import QEDbase: base_state

function _booster_fermion(mom::QEDbase.AbstractFourMomentum, mass::Real)
return (slashed(mom) + mass * one(DiracMatrix)) / (sqrt(abs(QEDbase.getT(mom)) + mass))
end
Expand Down

0 comments on commit db551c2

Please sign in to comment.