forked from M-Labs/artiq
style fixes
This commit is contained in:
parent
448ba042b5
commit
82a2beaa32
@ -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):
|
||||
|
@ -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 <connecting-to-the-core-device>` 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
|
||||
|
Loading…
Reference in New Issue
Block a user