Hi,
in pmt_to_python.py, there is the following function:
def numpy_to_blob§:
p = p.view(np.uint8)
b = pmt.make_blob(len§)
pmt.blob_data(b)[:] = p
return b
What is the assumed input here? It doesn’t seem to work with an ordinary
1D NumPy uint8 array. The pmt.make_blob() function wants to behave like
a C++ function, and expects two arguments, address and array length.
What is the best way to convert NumPy arrays to blobs?
(grextras and all the other stuff Josh was pointing to a couple of days
ago seem to have gone from github.)
Thanks,
Peter