Skip to content
Snippets Groups Projects
Commit 58b77c0c authored by Nora Abi Akar's avatar Nora Abi Akar Committed by Benjamin Cumming
Browse files

fix gpu unit test (#844)

Fix `mc_cell_group.gpu_test`: use the nerst equations for the reversal potential calculation for `na`, `ca` and `k`
parent 111104b4
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,15 @@ namespace {
TEST(mc_cell_group, gpu_test)
{
mc_cell_group group({0}, cable1d_recipe(make_cell()), lowered_cell());
auto rec = cable1d_recipe(make_cell());
rec.nernst_ion("na");
rec.nernst_ion("ca");
rec.nernst_ion("k");
mc_cell_group group{{0}, rec, lowered_cell()};
group.advance(epoch(0, 50), 0.01, {});
// the model is expected to generate 4 spikes as a result of the
// The model is expected to generate 4 spikes as a result of the
// fixed stimulus over 50 ms
EXPECT_EQ(4u, group.spikes().size());
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment