forked from M-Labs/artiq
1
0
Fork 0

pdq2.mediator: cleanup/style

This commit is contained in:
Robert Jördens 2016-02-21 17:33:45 +01:00
parent e3e42216a2
commit 294eac19fe
1 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
from artiq.language.core import *
from artiq.language.units import *
from artiq.language import *
frame_setup = 20*ns
@ -63,8 +62,8 @@ class _Segment:
if not self.frame.pdq.armed:
raise ArmError()
# If a frame is currently being played, check that we are next.
if (self.frame.pdq.current_frame >= 0
and self.frame.pdq.next_segment != self.segment_number):
if (self.frame.pdq.current_frame >= 0 and
self.frame.pdq.next_segment != self.segment_number):
raise SegmentSequenceError()
self.frame.advance()