library='np' returns numpy array of STLVectors #1171
Replies: 1 comment 4 replies
-
This is the intended behavior; a NumPy array of NumPy arrays is really just a NumPy array of arbitrary Python objects, and the But it would be nice if our class STLVector:
...
def __array__(self, *args, **kwargs):
return numpy.asarray(self._vector, *args, **kwargs) on the array-like types? ( (Wrapping an already-NumPy |
Beta Was this translation helpful? Give feedback.
-
When reading a file with doubly-nested arrays with
library='np'
I get a numpy array of STLVectors when I was hoping to get numpy arrays all the way down. It's very similar to this issue that was closed last year when usinglibrary='pd'
here. Wanted to check here if this is something I should open an issue for before doing so.Beta Was this translation helpful? Give feedback.
All reactions