Advertisement
Guest User

Untitled

a guest
Oct 18th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. diff --git a/python/gateway.py b/python/gateway.py
  2. index 7386594..e633245 100644
  3. --- a/python/gateway.py
  4. +++ b/python/gateway.py
  5. @@ -38,7 +38,7 @@ def pointer_to_ndarray(addr, dtype, nitems):
  6. return numpy.asarray(array_like()).view(dtype.base)
  7.  
  8. def pointers_to_ndarrays(addrs, dtypes, nitems):
  9. - return [pointer_to_ndarray(*args) for args in zip(addrs, dtypes, nitems)]
  10. + return [pointer_to_ndarray(addrs[i], dtypes[i], nitems[i]) for i in range(len(addrs))]
  11.  
  12. ########################################################################
  13. # Handler that does callbacks from C++
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement