From 5a2edef4223abecf8911eccd4a1010fd9cbe5211 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 23 Nov 2016 12:43:17 +0800 Subject: [PATCH] drtio: adapt example to new mu/second API --- artiq/examples/drtio/repository/pulse_rate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/examples/drtio/repository/pulse_rate.py b/artiq/examples/drtio/repository/pulse_rate.py index 091a30786..0d1a13468 100644 --- a/artiq/examples/drtio/repository/pulse_rate.py +++ b/artiq/examples/drtio/repository/pulse_rate.py @@ -11,7 +11,7 @@ class PulseRate(EnvExperiment): #self.core.reset() self.core.break_realtime() - dt = seconds_to_mu(300*ns) + dt = self.core.seconds_to_mu(300*ns) while True: for i in range(10000): try: @@ -22,5 +22,5 @@ class PulseRate(EnvExperiment): self.core.break_realtime() break else: - print(mu_to_seconds(dt)) + print(self.core.mu_to_seconds(dt)) return