Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/python/gateway.py b/python/gateway.py
- index 7386594..e633245 100644
- --- a/python/gateway.py
- +++ b/python/gateway.py
- @@ -38,7 +38,7 @@ def pointer_to_ndarray(addr, dtype, nitems):
- return numpy.asarray(array_like()).view(dtype.base)
- def pointers_to_ndarrays(addrs, dtypes, nitems):
- - return [pointer_to_ndarray(*args) for args in zip(addrs, dtypes, nitems)]
- + return [pointer_to_ndarray(addrs[i], dtypes[i], nitems[i]) for i in range(len(addrs))]
- ########################################################################
- # Handler that does callbacks from C++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement