2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

pdq2.mediator: cleanup/style

This commit is contained in:
Robert Jördens 2016-02-21 17:33:45 +01:00
parent e3e42216a2
commit 294eac19fe

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()