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

Remove depricated model::add_artificial_spike interface (#319)

parent 1f188dcd
No related branches found
No related tags found
No related merge requests found
...@@ -168,18 +168,6 @@ time_type model::run(time_type tfinal, time_type dt) { ...@@ -168,18 +168,6 @@ time_type model::run(time_type tfinal, time_type dt) {
return t_; return t_;
} }
// only thread safe if called outside the run() method
void model::add_artificial_spike(cell_member_type source) {
add_artificial_spike(source, t_);
}
// only thread safe if called outside the run() method
void model::add_artificial_spike(cell_member_type source, time_type tspike) {
if (domain_.is_local_gid(source.gid)) {
current_spikes().get().push_back({source, tspike});
}
}
void model::attach_sampler(cell_member_type probe_id, sampler_function f, time_type tfrom) { void model::attach_sampler(cell_member_type probe_id, sampler_function f, time_type tfrom) {
const auto idx = domain_.local_group_from_gid(probe_id.gid); const auto idx = domain_.local_group_from_gid(probe_id.gid);
......
...@@ -28,12 +28,6 @@ public: ...@@ -28,12 +28,6 @@ public:
time_type run(time_type tfinal, time_type dt); time_type run(time_type tfinal, time_type dt);
// only thread safe if called outside the run() method
void add_artificial_spike(cell_member_type source);
// only thread safe if called outside the run() method
void add_artificial_spike(cell_member_type source, time_type tspike);
void attach_sampler(cell_member_type probe_id, sampler_function f, time_type tfrom = 0); void attach_sampler(cell_member_type probe_id, sampler_function f, time_type tfrom = 0);
const std::vector<probe_record>& probes() const; const std::vector<probe_record>& probes() const;
......
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