From 99b1ed116bb056978f4ffffa6537ae9a1831f1e5 Mon Sep 17 00:00:00 2001 From: k-arakane <101306231+k-arakane@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:28:24 +0900 Subject: [PATCH] Refactor code for checking simulation exit status --- training/erbb_network_jl/simulation.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/training/erbb_network_jl/simulation.jl b/training/erbb_network_jl/simulation.jl index 24dab43..68b429f 100755 --- a/training/erbb_network_jl/simulation.jl +++ b/training/erbb_network_jl/simulation.jl @@ -44,7 +44,7 @@ function solveode( prob,CVODE_BDF(), abstol=ABSTOL,reltol=RELTOL,saveat=dt,dtmin=eps(),verbose=false ) - is_successful = ifelse(sol.retcode === :Success, true, false) + is_successful = ifelse(sol.retcode == :Success, true, false) catch is_successful = false finally @@ -71,7 +71,7 @@ function get_steady_state( ), dt=dt,verbose=false ) - is_successful = ifelse(sol.retcode === :Success, true, false) + is_successful = ifelse(sol.retcode == :Success, true, false) catch is_successful = false finally