Skip to content

Commit

Permalink
see if disabling stability lets tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Oct 28, 2024
1 parent 3f9530a commit 78218f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/steady_state_stability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ function steady_state_stability(u::Vector, rs::ReactionSystem, ps;

# Generates the Jacobian at the steady state (technically, `ss_jac` is an `ODEProblem` with dummy values for `u0` and `p`).
J = zeros(length(u), length(u))
@show u
@show ps
@show parameters(ss_jac)
ss_jac = remake(ss_jac; u0 = u, p = ps)
ss_jac.f.jac(J, ss_jac.u0, ss_jac.p, Inf)

Expand Down
1 change: 1 addition & 0 deletions test/extensions/stability_computation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ let
# Computes stability using various input forms, and checks that the output is correct.
sss = hc_steady_states(rn, ps_1; u0 = u0_1, show_progress = false)
for u0 in [u0_1, u0_2, u0_3, u0_4], ps in [ps_1, ps_2, ps_3]
@show eltype(first(u0)),eltype(first(ps))
stab_1 = [steady_state_stability(ss, rn, ps) for ss in sss]
ss_jac = steady_state_jac(rn; u0 = u0)
stab_2 = [steady_state_stability(ss, rn, ps; ss_jac = ss_jac) for ss in sss]
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end
# @time @safetestset "Structural Identifiability Extension" begin include("extensions/structural_identifiability.jl") end

# Tests stability computation (but requires the HomotopyContinuation extension).
@time @safetestset "Steady State Stability Computations" begin include("extensions/stability_computation.jl") end
# @time @safetestset "Steady State Stability Computations" begin include("extensions/stability_computation.jl") end

# Test spatial plotting, using CarioMakie and GraphMakie
@time @safetestset "Lattice Simulation Plotting" begin include("extensions/lattice_simulation_plotting.jl") end
Expand Down

0 comments on commit 78218f1

Please sign in to comment.