You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a Python dictionary (i.e. a PyDict), and I call get_item on it I get back a &PyAny. How do I go about converting this to a PyArray?
All of the documentation contains examples where NumPy arrays are passed directly to the Rust extension, but I haven't seen any where they are attributes of a class or stored as a reference, in other words when there is a layer of indirection between the NumPy array and the Rust extension. I would be glad to submit an example once I know how to do this.
The text was updated successfully, but these errors were encountered:
If I have a Python dictionary (i.e. a
PyDict
), and I callget_item
on it I get back a&PyAny
. How do I go about converting this to aPyArray
?All of the documentation contains examples where NumPy arrays are passed directly to the Rust extension, but I haven't seen any where they are attributes of a class or stored as a reference, in other words when there is a layer of indirection between the NumPy array and the Rust extension. I would be glad to submit an example once I know how to do this.
The text was updated successfully, but these errors were encountered: