forked from M-Labs/artiq
style
This commit is contained in:
parent
031d8d0890
commit
1cace1cd91
|
@ -95,6 +95,7 @@ Create a new file ``rtio.py`` containing the following: ::
|
|||
|
||||
from artiq import *
|
||||
|
||||
|
||||
class Tutorial(EnvExperiment):
|
||||
def build(self):
|
||||
self.attr_device("core")
|
||||
|
@ -115,6 +116,7 @@ Try reducing the period of the generated waveform until the CPU cannot keep up w
|
|||
|
||||
from artiq.coredevice.runtime_exceptions import RTIOUnderflow
|
||||
|
||||
|
||||
def print_underflow():
|
||||
print("RTIO underflow occured")
|
||||
|
||||
|
|
|
@ -115,7 +115,6 @@ class SpeedBenchmark(EnvExperiment):
|
|||
(end_time-start_time)/self.nruns,
|
||||
realtime=True)
|
||||
|
||||
|
||||
def run(self):
|
||||
if self.mode == "Single experiment":
|
||||
self.run_without_scheduler(False)
|
||||
|
|
Loading…
Reference in New Issue