Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Reexport.jl #34

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/formatter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ jobs:
run: julia --project=${GITHUB_WORKSPACE}/.formatting -e 'import Pkg; Pkg.instantiate()'
- name: Check code style
run: julia --project=${GITHUB_WORKSPACE}/.formatting ${GITHUB_WORKSPACE}/.formatting/format_all.jl

1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = "0.0.1-DEV"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
QEDbase = "10e22c08-3ccb-4172-bfcf-7d7aa3d04d93"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Expand Down
4 changes: 3 additions & 1 deletion src/QEDcore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ export PhasespaceDefinition
export ParticleStateful, PhaseSpacePoint, InPhaseSpacePoint, OutPhaseSpacePoint
export spin, polarization, momenta, getindex

using QEDbase
using Reexport
using DocStringExtensions
using StaticArrays
using SimpleTraits

@reexport using QEDbase

include("algebraic_objects/dirac_tensors/types.jl")
include("algebraic_objects/dirac_tensors/multiplication.jl")

Expand Down
4 changes: 2 additions & 2 deletions src/phase_spaces/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ 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.
```jldoctest
julia> using QEDcore; using QEDbase
julia> using QEDcore
julia> ParticleStateful(Incoming(), Electron(), SFourMomentum(1, 0, 0, 0))
ParticleStateful: incoming electron
Expand Down Expand Up @@ -76,7 +76,7 @@ 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.
```jldoctest
julia> using QEDcore; using QEDbase; using QEDprocesses
julia> using QEDcore; using QEDprocesses
julia> PhaseSpacePoint(
Compton(),
Expand Down
1 change: 0 additions & 1 deletion test/algebraic_objects/dirac_tensor.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using QEDcore
using QEDbase
using StaticArrays

unary_methods = [-, +]
Expand Down
1 change: 0 additions & 1 deletion test/algebraic_objects/four_momentum.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using QEDcore
using QEDbase
using Random

const ATOL = 1e-15
Expand Down
1 change: 0 additions & 1 deletion test/algebraic_objects/gamma_matrices.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using QEDcore
using QEDbase
using LinearAlgebra
using Random
using SparseArrays
Expand Down
1 change: 0 additions & 1 deletion test/algebraic_objects/lorentz_vector.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using QEDcore
using QEDbase
using StaticArrays

unary_methods = [-, +]
Expand Down
1 change: 0 additions & 1 deletion test/interfaces/process.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Random
using QEDbase
using QEDcore

RNG = MersenneTwister(137137)
Expand Down
1 change: 0 additions & 1 deletion test/particles/propagators.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Random
using QEDbase
using QEDcore

RNG = MersenneTwister(137137)
Expand Down
1 change: 0 additions & 1 deletion test/particles/spinors.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using QEDbase
using QEDcore
using Random

Expand Down
1 change: 0 additions & 1 deletion test/particles/states.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using QEDbase
using QEDcore
using StaticArrays
using Random
Expand Down
1 change: 0 additions & 1 deletion test/particles/types.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using QEDbase
using QEDcore
using StaticArrays
using Random
Expand Down
1 change: 0 additions & 1 deletion test/phase_spaces.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Random
using StaticArrays
using QEDbase
using QEDcore

include("test_implementation/TestImplementation.jl")
Expand Down
1 change: 0 additions & 1 deletion test/test_implementation/TestImplementation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export TestProcess, TestProcess_FAIL
export TestPhasespaceDef, TestPhasespaceDef_FAIL

using Random
using QEDbase
using QEDcore
using StaticArrays

Expand Down
Loading