mirror of https://github.com/m-labs/artiq.git
examples/transport: int arguments
This commit is contained in:
parent
950eaef08c
commit
d80739811b
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue