Skip to content

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 mapping dict
  • isinstance check for output of GetDataArray and subsequent call to numpy.frombuffer

Merge request reports