Skip to content

Commit

Permalink
Fix parameter setting in ring example (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming authored Aug 19, 2019
1 parent 58b77c0 commit 1a07b81
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example/ring/ring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ class ring_recipe: public arb::recipe {
num_cells_(num_cells),
cell_params_(params),
min_delay_(min_delay)
{}
{
gprop_.default_parameters = arb::neuron_parameter_defaults;
}

cell_size_type num_cells() const override {
return num_cells_;
Expand Down Expand Up @@ -108,11 +110,17 @@ class ring_recipe: public arb::recipe {
return arb::probe_info{id, kind, cell_probe_address{loc, kind}};
}

arb::util::any get_global_properties(arb::cell_kind) const override {
return gprop_;
}


private:
cell_size_type num_cells_;
cell_parameters cell_params_;
double min_delay_;
float event_weight_ = 0.05;
arb::cable_cell_global_properties gprop_;
};

struct cell_stats {
Expand Down

0 comments on commit 1a07b81

Please sign in to comment.