From 8cb3d33c67ca88d09616479b582c29619ae8e211 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 16 Jun 2014 23:51:43 +0200 Subject: [PATCH] compiler_test: better RPC example --- examples/compiler_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/compiler_test.py b/examples/compiler_test.py index 504cd433a..fcd4e55c1 100644 --- a/examples/compiler_test.py +++ b/examples/compiler_test.py @@ -9,14 +9,15 @@ class CompilerTest(Experiment): def print_done(self): print("Done!") - def print_iter(self, n): - print("Iteration: {}".format(n)) + def set_some_slowdev(self, n): + print("Slow device setting: {}".format(n)) @kernel def run(self, n, t2): t2 += 1*us for i in my_range(n): - self.print_iter(i) + self.set_some_slowdev(i) + delay(100*ms) with parallel: with sequential: self.a.pulse(100*MHz, 20*us)