Skip to content
Snippets Groups Projects
Commit 1963634e authored by Sam Yates's avatar Sam Yates Committed by Ben Cumming
Browse files

Re-instate ball-and-taper validation tests. (#124)

Fixes #85
parent dfb32094
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,10 @@ TEST(ball_and_stick, neuron_ref) {
validate_ball_and_stick<lowered_cell>();
}
TEST(ball_and_taper, neuron_ref) {
validate_ball_and_taper<lowered_cell>();
}
TEST(ball_and_3stick, neuron_ref) {
validate_ball_and_3stick<lowered_cell>();
}
......
......@@ -9,6 +9,10 @@ TEST(ball_and_stick, neuron_ref) {
validate_ball_and_stick<lowered_cell>();
}
TEST(ball_and_taper, neuron_ref) {
validate_ball_and_taper<lowered_cell>();
}
TEST(ball_and_3stick, neuron_ref) {
validate_ball_and_3stick<lowered_cell>();
}
......
......@@ -59,7 +59,6 @@ void run_ncomp_convergence_test(
runner.assert_all_convergence();
}
template <typename LoweredCell>
void validate_ball_and_stick() {
using namespace nest::mc;
......@@ -81,6 +80,27 @@ void validate_ball_and_stick() {
samplers);
}
template <typename LoweredCell>
void validate_ball_and_taper() {
using namespace nest::mc;
cell c = make_cell_ball_and_taper();
add_common_voltage_probes(c);
float sample_dt = 0.025f;
sampler_info samplers[] = {
{"soma.mid", {0u, 0u}, simple_sampler(sample_dt)},
{"taper.mid", {0u, 1u}, simple_sampler(sample_dt)},
{"taper.end", {0u, 2u}, simple_sampler(sample_dt)}
};
run_ncomp_convergence_test<LoweredCell>(
"ball_and_taper",
"neuron_ball_and_taper.json",
c,
samplers);
}
template <typename LoweredCell>
void validate_ball_and_3stick() {
using namespace nest::mc;
......
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