From a1057440e0cf32fe16e47026263ff6976efd2092 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Mon, 6 May 2024 16:14:00 +0530 Subject: [PATCH] fix: don't rely on RAT internals in EnsembleSolution indexing --- src/ensemble/ensemble_solutions.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ensemble/ensemble_solutions.jl b/src/ensemble/ensemble_solutions.jl index 40a5af155..7c9529b67 100644 --- a/src/ensemble/ensemble_solutions.jl +++ b/src/ensemble/ensemble_solutions.jl @@ -211,8 +211,7 @@ end end end -Base.@propagate_inbounds function RecursiveArrayTools._getindex( - x::AbstractEnsembleSolution, ::Union{ScalarSymbolic, ArraySymbolic}, s, ::Colon) +Base.@propagate_inbounds function Base.getindex(x::AbstractEnsembleSolution, s, ::Colon) return [xi[s] for xi in x.u] end