From a03f3a5ff4de0eb2cfb74c5fc66e180695deb145 Mon Sep 17 00:00:00 2001 From: Torkel Date: Wed, 4 Oct 2023 09:40:56 -0400 Subject: [PATCH] update --- .../homotopy_continuation_extension.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl b/ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl index be29fa28d1..d3f5343cc1 100644 --- a/ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl +++ b/ext/CatalystHomotopyContinuationExtension/homotopy_continuation_extension.jl @@ -44,7 +44,7 @@ end # For a given reaction system, parameter values, and initial conditions, find the polynomial that HC solves to find steady states. function steady_state_polynomial(rs::ReactionSystem, ps, u0) ns = convert(NonlinearSystem, rs; remove_conserved = true) - pre_varmap = map(pair -> pair, [symmap_to_varmap(rs,u0)..., symmap_to_varmap(rs,ps)...]) + pre_varmap = [symmap_to_varmap(rs,u0)..., symmap_to_varmap(rs,ps)...] conservationlaw_errorcheck(rs, pre_varmap) p_vals = ModelingToolkit.varmap_to_vars(pre_varmap, parameters(ns); defaults = ModelingToolkit.defaults(ns)) p_dict = Dict(parameters(ns) .=> p_vals)