Closed rossodisera closed 4 weeks ago
Commit #cdaf9a7 adds an array method to STLVector in containers.py L1544 and L1659.
However, the method tries to return an attribute that does not exist. I think it should return self._values and not self._vector
self._values
self._vector
def __array__(self, *args, **kwargs): return numpy.asarray(self._vector, *args, **kwargs)
should be:
def __array__(self, *args, **kwargs): return numpy.asarray(self._values, *args, **kwargs)
I tried to fix it with a small change in PR 1323
Commit #cdaf9a7 adds an array method to STLVector in containers.py L1544 and L1659.
However, the method tries to return an attribute that does not exist. I think it should return
self._values
and notself._vector
should be:
I tried to fix it with a small change in PR 1323