Workaround frameCPP not picking up numpy headers
This PR adds a workaround to failures when frameCPP fails to find the numpy/arrayobject.h
headers. In this case FrVect.GetDataArray()
just returns a raw buffer
so we need to convert into an ndarray
by hand.
This PR adds the following:
-
FrVect
->numpy
type mappingdict
-
isinstance
check for output ofGetDataArray
and subsequent call tonumpy.frombuffer