Skip to content
Snippets Groups Projects
Unverified Commit 7d1ee1e3 authored by Nora Abi Akar's avatar Nora Abi Akar Committed by GitHub
Browse files

Docs: fix python tutorials (#1527)

Fix mistakes reported by @Helveg in the Python tutorial docs. 
parent c63a5afe
No related branches found
No related tags found
No related merge requests found
...@@ -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')
......
...@@ -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
......
...@@ -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')
......
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