From 82a2beaa3237905d953dae9c3fb4c5ad88056726 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 4 Jun 2015 10:42:37 +0800 Subject: [PATCH] style fixes --- artiq/test/sync_struct.py | 6 +++--- doc/manual/installing.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/test/sync_struct.py b/artiq/test/sync_struct.py index a66185ce3..3509bae23 100644 --- a/artiq/test/sync_struct.py +++ b/artiq/test/sync_struct.py @@ -18,7 +18,7 @@ def write_test_data(test_dict): for key, value in enumerate(test_values): test_dict[key] = value test_dict[1.5] = 1.5 - test_dict["Finished"] = True + test_dict["finished"] = True @asyncio.coroutine @@ -37,8 +37,8 @@ class SyncStructCase(unittest.TestCase): return init def notify(self, mod): - if (mod["action"] == "init" and "Finished" in mod["struct"])\ - or (mod["action"] == "setitem" and mod["key"] == "Finished"): + if (mod["action"] == "init" and "finished" in mod["struct"])\ + or (mod["action"] == "setitem" and mod["key"] == "finished"): self.receiving_done.set() def setUp(self): diff --git a/doc/manual/installing.rst b/doc/manual/installing.rst index 79ef78e66..f746e6fba 100644 --- a/doc/manual/installing.rst +++ b/doc/manual/installing.rst @@ -177,7 +177,7 @@ To flash the ``idle`` kernel: * Compile the ``idle`` experiment: The ``idle`` experiment's ``run()`` method must be a kernel: it must be decorated with the ``@kernel`` decorator (see :ref:`next topic ` for more information about kernels). - Moreover, since the core device is not connected to the PC: RPC are forbidden in this ``idle`` experiment. + Since the core device is not connected to the PC, RPCs (calling Python code running on the PC from the kernel) are forbidden in the ``idle`` experiment. :: $ artiq_compile idle.py