diff --git a/doc/tutorial/single_cell_model.rst b/doc/tutorial/single_cell_model.rst index f9668712e4ff4c5ddf921ed5a5e5d683cc493d07..a5ce9dd5148bec27f61a2aba6efbfe8f07f25452 100644 --- a/doc/tutorial/single_cell_model.rst +++ b/doc/tutorial/single_cell_model.rst @@ -48,7 +48,7 @@ Our *single-segment HH cell* has a simple morphology and dynamics, constructed a labels = arbor.label_dict({'soma': '(tag 1)', 'midpoint': '(location 0 0.5)'}) - # (3) Create cell and set properties + # (3) Create and set up a decor object decor = arbor.decor() decor.set_property(Vm=-40) decor.paint('"soma"', 'hh') diff --git a/doc/tutorial/single_cell_recipe.rst b/doc/tutorial/single_cell_recipe.rst index 43a152f3831eec468ba41f24db139e4121bde125..41963f59f6db225de2668a1e4180d6b6e57efc56 100644 --- a/doc/tutorial/single_cell_recipe.rst +++ b/doc/tutorial/single_cell_recipe.rst @@ -93,6 +93,10 @@ It returns `0` by default and models without cells are quite boring! # (4.7) Override the global_properties method 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.1)** defines the class constructor. It can take any shape you need, but it diff --git a/python/example/single_cell_model.py b/python/example/single_cell_model.py index 76f0153ec64e156b3b9a04105883e358f0020a38..39248517f9c05b13f2a7ed10fdd3384e8e4bdc9a 100755 --- a/python/example/single_cell_model.py +++ b/python/example/single_cell_model.py @@ -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)', 'midpoint': '(location 0 0.5)'}) -# (3) Create cell and set properties +# (3) Create and set up a decor object decor = arbor.decor() decor.set_property(Vm=-40) decor.paint('"soma"', 'hh')