From fe809f81abbf42a66220ebc906559376c2c7e6f2 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 26 Oct 2015 00:21:51 +0800 Subject: [PATCH] protocols/pyon: make received numpy arrays writable --- artiq/protocols/pyon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/protocols/pyon.py b/artiq/protocols/pyon.py index 471025b43..5c25e882c 100644 --- a/artiq/protocols/pyon.py +++ b/artiq/protocols/pyon.py @@ -145,6 +145,7 @@ def encode(x, pretty=False): def _nparray(shape, dtype, data): a = numpy.frombuffer(base64.b64decode(data), dtype=dtype) + a = a.copy() return a.reshape(shape)