Skip to content

Commit

Permalink
fix test for metabolicHHneuron network
Browse files Browse the repository at this point in the history
  • Loading branch information
bbantal committed Jan 22, 2025
1 parent b5b3f40 commit 63e4e17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -891,14 +891,14 @@ end

# Check if time points where V(t) > 20 mV occur throughout the ts
t_above = sol.t[V_ts_exc .> -20]
@test minimum(t_above) < 50 && maximum(t_above) > 180
@test minimum(t_above) < 50 && maximum(t_above) > 150
t_above = sol.t[V_ts_inh .> -20]
@test minimum(t_above) < 50 && maximum(t_above) > 180
@test minimum(t_above) < 50 && maximum(t_above) > 150

# Check if time points where V(t) < -40 mV occur throughout the ts
t_below = sol.t[V_ts_exc .< -40]
@test minimum(t_below) < 50 && maximum(t_below) > 180
@test minimum(t_below) < 50 && maximum(t_below) > 150
t_below = sol.t[V_ts_inh .< -40]
@test minimum(t_below) < 50 && maximum(t_below) > 180
@test minimum(t_below) < 50 && maximum(t_below) > 150

end

0 comments on commit 63e4e17

Please sign in to comment.