mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 16:06:30 +08:00
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 *
|
from artiq import *
|
||||||
|
|
||||||
|
|
||||||
class Tutorial(EnvExperiment):
|
class Tutorial(EnvExperiment):
|
||||||
def build(self):
|
def build(self):
|
||||||
self.attr_device("core")
|
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
|
from artiq.coredevice.runtime_exceptions import RTIOUnderflow
|
||||||
|
|
||||||
|
|
||||||
def print_underflow():
|
def print_underflow():
|
||||||
print("RTIO underflow occured")
|
print("RTIO underflow occured")
|
||||||
|
|
||||||
|
@ -115,7 +115,6 @@ class SpeedBenchmark(EnvExperiment):
|
|||||||
(end_time-start_time)/self.nruns,
|
(end_time-start_time)/self.nruns,
|
||||||
realtime=True)
|
realtime=True)
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.mode == "Single experiment":
|
if self.mode == "Single experiment":
|
||||||
self.run_without_scheduler(False)
|
self.run_without_scheduler(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user