mirror of https://github.com/m-labs/artiq.git
protocols/pyon: minor cleanup
This commit is contained in:
parent
c97cb1d3b9
commit
a27aa9680e
|
@ -13,7 +13,7 @@ objects. Its main features are:
|
||||||
The main rationale for this new custom serializer (instead of using JSON) is
|
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
|
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
|
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 tempfile
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
from ..language.core import int as wrapping_int
|
from ..language.core import int as wrapping_int
|
||||||
|
|
||||||
|
|
||||||
_encode_map = {
|
_encode_map = {
|
||||||
type(None): "none",
|
type(None): "none",
|
||||||
bool: "bool",
|
bool: "bool",
|
||||||
|
|
Loading…
Reference in New Issue