From 7d5946b76ef9ea938de3849240cafb32fdf75684 Mon Sep 17 00:00:00 2001 From: Paul Tiede Date: Sun, 15 Dec 2024 23:38:36 -0500 Subject: [PATCH] Fix indexing again --- src/instrument/site_array.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instrument/site_array.jl b/src/instrument/site_array.jl index 3a49a758..ce79d851 100644 --- a/src/instrument/site_array.jl +++ b/src/instrument/site_array.jl @@ -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())