From 43320b99b5b8a998b38831e5c803e83912e0580d Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Wed, 31 Jul 2024 12:43:54 +0530 Subject: [PATCH 1/2] fix: fix ambiguity in AbstractEnsembleSolution indexing --- src/ensemble/ensemble_solutions.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ensemble/ensemble_solutions.jl b/src/ensemble/ensemble_solutions.jl index 0b83a06f8..6bb64e04f 100644 --- a/src/ensemble/ensemble_solutions.jl +++ b/src/ensemble/ensemble_solutions.jl @@ -215,8 +215,8 @@ Base.@propagate_inbounds function Base.getindex(x::AbstractEnsembleSolution, s:: return x.u[s].u[i] end -Base.@propagate_inbounds function Base.getindex(x::AbstractEnsembleSolution, s::Integer, idxs::Integer...) - return x.u[s][idxs] +Base.@propagate_inbounds function Base.getindex(x::AbstractEnsembleSolution, s::Integer, i2::Integer, i3::Integer, idxs::Integer...) + return x.u[s][i2, i3, idxs...] end Base.@propagate_inbounds function Base.getindex(x::AbstractEnsembleSolution, s, ::Colon) From af68b84b3cdba000fae07a7f69b28bb532008c97 Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam Date: Wed, 31 Jul 2024 09:26:10 +0200 Subject: [PATCH 2/2] ci(format-check): automatically comment formatting suggestions on PRs --- .github/workflows/FormatCheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index c240796cc..6185015c4 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -10,4 +10,4 @@ on: jobs: format-check: name: "Format Check" - uses: "SciML/.github/.github/workflows/format-check.yml@v1" + uses: "SciML/.github/.github/workflows/format-suggestions-on-pr.yml@v1"