From 148e8d658c58936d20050814f39b40ca6961c790 Mon Sep 17 00:00:00 2001
From: Sebastian Schmitt <sebastian.schmitt@kip.uni-heidelberg.de>
Date: Fri, 8 Oct 2021 09:08:40 +0200
Subject: [PATCH] Use class members in cable example for parameters.

---
 python/example/single_cell_cable.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/python/example/single_cell_cable.py b/python/example/single_cell_cable.py
index 753c7169..5cb93c17 100755
--- a/python/example/single_cell_cable.py
+++ b/python/example/single_cell_cable.py
@@ -43,6 +43,10 @@ class Cable(arbor.recipe):
         self.rL = rL
         self.g = g
 
+        self.stimulus_start = stimulus_start
+        self.stimulus_duration = stimulus_duration
+        self.stimulus_amplitude = stimulus_amplitude
+
         self.cv_policy_max_extent = cv_policy_max_extent
 
         self.the_props = arbor.neuron_cable_properties()
@@ -86,7 +90,7 @@ class Cable(arbor.recipe):
         decor.paint('"cable"',
                     arbor.mechanism(f'pas/e={self.Vm}', {'g': self.g}))
 
-        decor.place('"start"', arbor.iclamp(args.stimulus_start, args.stimulus_duration, args.stimulus_amplitude), "iclamp")
+        decor.place('"start"', arbor.iclamp(self.stimulus_start, self.stimulus_duration, self.stimulus_amplitude), "iclamp")
 
         policy = arbor.cv_policy_max_extent(self.cv_policy_max_extent)
         decor.discretization(policy)
-- 
GitLab