forked from M-Labs/artiq
sim: improve formatting
This commit is contained in:
parent
0978cd0e35
commit
c171deec51
@ -93,7 +93,7 @@ class WaveOutput:
|
||||
|
||||
@kernel
|
||||
def pulse(self, frequency, duration):
|
||||
time.manager.event(("pulse", self.name, frequency, duration))
|
||||
time.manager.event(("pulse", self.name, frequency, self.core.seconds_to_mu(duration)))
|
||||
delay(duration)
|
||||
|
||||
|
||||
|
@ -62,7 +62,7 @@ class Manager:
|
||||
r = ""
|
||||
prev_time = 0*s
|
||||
for time, description in sorted(self.timeline, key=itemgetter(0)):
|
||||
r += "@{:.9f} (+{:.9f}) ".format(time, time-prev_time)
|
||||
r += "{:35}".format("@{:.9f} (+{:.9f}) ".format(time, time-prev_time))
|
||||
for item in description:
|
||||
r += "{:16}".format(str(item))
|
||||
r += "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user