mirror of https://github.com/m-labs/artiq.git
test/sawg: patch delay_mu
This commit is contained in:
parent
570f2cc1ff
commit
5f6e665158
|
@ -20,10 +20,13 @@ class RTIOManager:
|
||||||
def rtio_output_wide(self, *args, **kwargs):
|
def rtio_output_wide(self, *args, **kwargs):
|
||||||
self.rtio_output(*args, **kwargs)
|
self.rtio_output(*args, **kwargs)
|
||||||
|
|
||||||
|
def delay_mu(self, t):
|
||||||
|
delay(t)
|
||||||
|
|
||||||
def patch(self, mod):
|
def patch(self, mod):
|
||||||
assert not hasattr(mod, "_saved")
|
assert not hasattr(mod, "_saved")
|
||||||
mod._saved = {}
|
mod._saved = {}
|
||||||
for name in "rtio_output rtio_output_wide".split():
|
for name in "rtio_output rtio_output_wide delay_mu".split():
|
||||||
mod._saved[name] = getattr(mod, name, None)
|
mod._saved[name] = getattr(mod, name, None)
|
||||||
setattr(mod, name, getattr(self, name))
|
setattr(mod, name, getattr(self, name))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue