mirror of https://github.com/m-labs/artiq.git
pdq2.mediator: cleanup/style
This commit is contained in:
parent
e3e42216a2
commit
294eac19fe
|
@ -1,5 +1,4 @@
|
||||||
from artiq.language.core import *
|
from artiq.language import *
|
||||||
from artiq.language.units import *
|
|
||||||
|
|
||||||
|
|
||||||
frame_setup = 20*ns
|
frame_setup = 20*ns
|
||||||
|
@ -63,8 +62,8 @@ class _Segment:
|
||||||
if not self.frame.pdq.armed:
|
if not self.frame.pdq.armed:
|
||||||
raise ArmError()
|
raise ArmError()
|
||||||
# If a frame is currently being played, check that we are next.
|
# If a frame is currently being played, check that we are next.
|
||||||
if (self.frame.pdq.current_frame >= 0
|
if (self.frame.pdq.current_frame >= 0 and
|
||||||
and self.frame.pdq.next_segment != self.segment_number):
|
self.frame.pdq.next_segment != self.segment_number):
|
||||||
raise SegmentSequenceError()
|
raise SegmentSequenceError()
|
||||||
self.frame.advance()
|
self.frame.advance()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue