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
e981b905
Unverified
Commit
e981b905
authored
4 years ago
by
Brent Huisman
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clarify that spike detector can serve as endpoint in connection. (#1339)
parent
84e21214
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
doc/python/interconnectivity.rst
+11
-2
11 additions, 2 deletions
doc/python/interconnectivity.rst
python/cells.cpp
+2
-2
2 additions, 2 deletions
python/cells.cpp
with
13 additions
and
4 deletions
doc/python/interconnectivity.rst
+
11
−
2
View file @
e981b905
...
...
@@ -14,11 +14,11 @@ Interconnectivity
.. attribute:: source
The source end point of the connection (type: :class:`arbor.cell_member`).
The source end point of the connection (type: :class:`arbor.cell_member`
, which can be initialized with a (gid, index) tuple
).
.. attribute:: dest
The destination end point of the connection (type: :class:`arbor.cell_member`).
The destination end point of the connection (type: :class:`arbor.cell_member`
, which can be initialized with a (gid, index) tuple
).
.. attribute:: weight
...
...
@@ -65,3 +65,12 @@ Interconnectivity
.. attribute:: ggap
The gap junction conductance [μS].
.. class:: spike_detector
A spike detector, generates a spike when voltage crosses a threshold. Can be used as source endpoint for an :ref:`arbor.connection`.
.. attribute:: threshold
Voltage threshold of spike detector [mV]
This diff is collapsed.
Click to expand it.
python/cells.cpp
+
2
−
2
View file @
e981b905
...
...
@@ -297,13 +297,13 @@ void register_cells(pybind11::module& m) {
// arb::threshold_detector
pybind11
::
class_
<
arb
::
threshold_detector
>
detector
(
m
,
"spike_detector"
,
"A spike detector, generates a spike when voltage crosses a threshold."
);
"A spike detector, generates a spike when voltage crosses a threshold.
Can be used as source endpoint for an arbor.connection.
"
);
detector
.
def
(
pybind11
::
init
(
[](
double
thresh
)
{
return
arb
::
threshold_detector
{
thresh
};
}),
"threshold"
_a
)
.
def_readonly
(
"threshold"
,
&
arb
::
threshold_detector
::
threshold
,
"Voltage threshold of spike detector [m
s
]"
)
.
def_readonly
(
"threshold"
,
&
arb
::
threshold_detector
::
threshold
,
"Voltage threshold of spike detector [m
V
]"
)
.
def
(
"__repr__"
,
[](
const
arb
::
threshold_detector
&
d
){
return
util
::
pprintf
(
"<arbor.threshold_detector: threshold {} mV>"
,
d
.
threshold
);})
.
def
(
"__str__"
,
[](
const
arb
::
threshold_detector
&
d
){
...
...
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