Skip to content

Commit

Permalink
Fix indexing again
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Dec 16, 2024
1 parent 5d4d2b0 commit 7d5946b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/instrument/site_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ _equalorin(x::Real, y) = x ∈ y
_equalorin(x, y::Real) = y x
_equalorin(x, y) = y x
_equalorin(x, ::typeof(Base.Colon())) = true
_equalorin(::typeof(Base.Colon()), x) = true
const Indexable = Union{Integer, AbstractArray{<:Integer}, BitArray}

function Base.getindex(arr::SiteArray; Fr=Base.Colon(), S=Base.Colon(), Ti=Base.Colon())
Expand Down

0 comments on commit 7d5946b

Please sign in to comment.