From d80739811bec4b161a31968518e4e705d0913c6a Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 24 Feb 2016 14:47:27 +0100 Subject: [PATCH] examples/transport: int arguments --- examples/master/repository/coredevice_examples/transport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/master/repository/coredevice_examples/transport.py b/examples/master/repository/coredevice_examples/transport.py index e60fe1989..ba367bdbc 100644 --- a/examples/master/repository/coredevice_examples/transport.py +++ b/examples/master/repository/coredevice_examples/transport.py @@ -17,8 +17,8 @@ class Transport(EnvExperiment): self.setattr_argument("wait_at_stop", NumberValue(100*us)) self.setattr_argument("speed", NumberValue(1/(10*us))) - self.setattr_argument("repeats", NumberValue(100)) - self.setattr_argument("bins", NumberValue(100)) + self.repeats = int(self.get_argument("repeats", NumberValue(100))) + self.bins = int(self.get_argument("bins", NumberValue(100))) t = np.linspace(0, 10, 101) # waveform time u = 1 - np.cos(np.pi*t/t[-1])