From de2c7deab27810c9232af799262f42e3b566d6bb Mon Sep 17 00:00:00 2001 From: Hao Gao Date: Wed, 13 Sep 2017 16:14:24 -0500 Subject: [PATCH] Require CommandQueue argument in get method --- boxtree/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxtree/tools.py b/boxtree/tools.py index ee472de..ece152d 100644 --- a/boxtree/tools.py +++ b/boxtree/tools.py @@ -287,7 +287,7 @@ class DeviceDataRecord(Record): return self.copy(**result) - def get(self, **kwargs): + def get(self, queue, **kwargs): """Return a copy of `self` in which all data lives on the host, i.e. all :class:`pyopencl.array.Array` objects are replaced by corresponding :class:`numpy.ndarray` instances on the host. @@ -299,7 +299,7 @@ class DeviceDataRecord(Record): except AttributeError: return attr - return get_meth(**kwargs) + return get_meth(queue=queue, **kwargs) return self._transform_arrays(try_get) -- GitLab