diff --git a/src/particles/spinors.jl b/src/particles/spinors.jl index d26ebe5..d366807 100644 --- a/src/particles/spinors.jl +++ b/src/particles/spinors.jl @@ -118,6 +118,7 @@ end const SpinorVbar = IncomingAntiFermionSpinor -function getindex(SP::T, idx) where {T<:QEDbase.AbstractParticleSpinor} - return idx in (1, 2) ? SP(idx) : throw(BoundsError()) -end +# TODO: reenable when it's no longer in QEDbase +# function getindex(SP::T, idx) where {T<:QEDbase.AbstractParticleSpinor} +# return idx in (1, 2) ? SP(idx) : throw(BoundsError()) +# end diff --git a/test/particles/types.jl b/test/particles/types.jl index 13fec88..4766170 100644 --- a/test/particles/types.jl +++ b/test/particles/types.jl @@ -2,6 +2,10 @@ using QEDbase using StaticArrays using Random +# TODO this can be deleted when QEDbase is released again +# fix for the broadcast tests +Base.broadcastable(part::QEDbase.AbstractParticleType) = Ref(part) + # test function to test scalar broadcasting test_broadcast(x::AbstractParticle) = x test_broadcast(x::ParticleDirection) = x