Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
dc4f9283
Commit
dc4f9283
authored
7 years ago
by
Ben Cumming
Committed by
Sam Yates
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove depricated model::add_artificial_spike interface (#319)
parent
1f188dcd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/model.cpp
+0
-12
0 additions, 12 deletions
src/model.cpp
src/model.hpp
+0
-6
0 additions, 6 deletions
src/model.hpp
with
0 additions
and
18 deletions
src/model.cpp
+
0
−
12
View file @
dc4f9283
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/model.hpp
+
0
−
6
View file @
dc4f9283
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment