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
7d1ee1e3
Unverified
Commit
7d1ee1e3
authored
3 years ago
by
Nora Abi Akar
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Docs: fix python tutorials (#1527)
Fix mistakes reported by @Helveg in the Python tutorial docs.
parent
c63a5afe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/tutorial/single_cell_model.rst
+1
-1
1 addition, 1 deletion
doc/tutorial/single_cell_model.rst
doc/tutorial/single_cell_recipe.rst
+4
-0
4 additions, 0 deletions
doc/tutorial/single_cell_recipe.rst
python/example/single_cell_model.py
+1
-1
1 addition, 1 deletion
python/example/single_cell_model.py
with
6 additions
and
2 deletions
doc/tutorial/single_cell_model.rst
+
1
−
1
View file @
7d1ee1e3
...
@@ -48,7 +48,7 @@ Our *single-segment HH cell* has a simple morphology and dynamics, constructed a
...
@@ -48,7 +48,7 @@ Our *single-segment HH cell* has a simple morphology and dynamics, constructed a
labels = arbor.label_dict({'soma': '(tag 1)',
labels = arbor.label_dict({'soma': '(tag 1)',
'midpoint': '(location 0 0.5)'})
'midpoint': '(location 0 0.5)'})
# (3) Create
cell
and set
properties
# (3) Create and set
up a decor object
decor = arbor.decor()
decor = arbor.decor()
decor.set_property(Vm=-40)
decor.set_property(Vm=-40)
decor.paint('"soma"', 'hh')
decor.paint('"soma"', 'hh')
...
...
This diff is collapsed.
Click to expand it.
doc/tutorial/single_cell_recipe.rst
+
4
−
0
View file @
7d1ee1e3
...
@@ -93,6 +93,10 @@ It returns `0` by default and models without cells are quite boring!
...
@@ -93,6 +93,10 @@ It returns `0` by default and models without cells are quite boring!
# (4.7) Override the global_properties method
# (4.7) Override the global_properties method
return self.the_props
return self.the_props
# (5) Instantiate recipe with a voltage probe located on "midpoint".
recipe = single_recipe(cell, [arbor.cable_probe_membrane_voltage('"midpoint"')])
Step **(4)** describes the recipe that will reflect our single cell model.
Step **(4)** describes the recipe that will reflect our single cell model.
Step **(4.1)** defines the class constructor. It can take any shape you need, but it
Step **(4.1)** defines the class constructor. It can take any shape you need, but it
...
...
This diff is collapsed.
Click to expand it.
python/example/single_cell_model.py
+
1
−
1
View file @
7d1ee1e3
...
@@ -11,7 +11,7 @@ tree.append(arbor.mnpos, arbor.mpoint(-3, 0, 0, 3), arbor.mpoint(3, 0, 0, 3), ta
...
@@ -11,7 +11,7 @@ tree.append(arbor.mnpos, arbor.mpoint(-3, 0, 0, 3), arbor.mpoint(3, 0, 0, 3), ta
labels
=
arbor
.
label_dict
({
'
soma
'
:
'
(tag 1)
'
,
labels
=
arbor
.
label_dict
({
'
soma
'
:
'
(tag 1)
'
,
'
midpoint
'
:
'
(location 0 0.5)
'
})
'
midpoint
'
:
'
(location 0 0.5)
'
})
# (3) Create
cell
and set
properties
# (3) Create and set
up a decor object
decor
=
arbor
.
decor
()
decor
=
arbor
.
decor
()
decor
.
set_property
(
Vm
=-
40
)
decor
.
set_property
(
Vm
=-
40
)
decor
.
paint
(
'"
soma
"'
,
'
hh
'
)
decor
.
paint
(
'"
soma
"'
,
'
hh
'
)
...
...
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