Skip to content

Commit

Permalink
Refactor code for checking simulation exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
k-arakane committed Oct 16, 2024
1 parent f6113dd commit 99b1ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training/erbb_network_jl/simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 99b1ed1

Please # to comment.