From 6e000e05ea9e07c73e80d994d2b09bd4be96ab1e Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Wed, 26 Aug 2026 04:26:19 -0400 Subject: [PATCH] Fix docs build: import EnsembleProblem/EnsembleThreads in shapley.md The shapley.md tutorial's @example block uses EnsembleProblem and EnsembleThreads but never imports them, unlike parallelized_gsa.md and juliacon21.md which explicitly import via `using SciMLBase: EnsembleProblem, EnsembleThreads`. With SciMLBase v3, these names are no longer transitively brought into scope by OrdinaryDiffEq's re-exports, so the doc build fails with UndefVarError: EnsembleThreads not defined, which cascades into UndefVarError: shapley_effects not defined in the following blocks. Co-authored-by: Cursor --- docs/src/tutorials/shapley.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/tutorials/shapley.md b/docs/src/tutorials/shapley.md index baef831a..a7910c78 100644 --- a/docs/src/tutorials/shapley.md +++ b/docs/src/tutorials/shapley.md @@ -19,6 +19,7 @@ As the first step let's generate the dataset. ```@example shapley using GlobalSensitivity, OrdinaryDiffEq, Flux, SciMLSensitivity, LinearAlgebra using Optimization, OptimizationOptimisers, Distributions, Copulas, CairoMakie +using SciMLBase: EnsembleProblem, EnsembleThreads u0 = [2.0f0; 0.0f0] datasize = 30