From a27aa9680eaed71e4f6ac15210b0cf83381579b1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 4 Apr 2016 21:34:37 +0800 Subject: [PATCH] protocols/pyon: minor cleanup --- artiq/protocols/pyon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/protocols/pyon.py b/artiq/protocols/pyon.py index 10b5412aa..f78583421 100644 --- a/artiq/protocols/pyon.py +++ b/artiq/protocols/pyon.py @@ -13,7 +13,7 @@ objects. Its main features are: The main rationale for this new custom serializer (instead of using JSON) is that JSON does not support Numpy and more generally cannot be extended with other data types while keeping a concise syntax. Here we can use the Python -function call syntax to mark special data types. +function call syntax to express special data types. """ @@ -24,8 +24,10 @@ import os import tempfile import numpy + from ..language.core import int as wrapping_int + _encode_map = { type(None): "none", bool: "bool",