forked from M-Labs/artiq
1
0
Fork 0

examples/transport: int arguments

This commit is contained in:
Robert Jördens 2016-02-24 14:47:27 +01:00
parent 950eaef08c
commit d80739811b
1 changed files with 2 additions and 2 deletions

View File

@ -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])