Hi, can I convert a blob created by my C++ code (unsigned chars) to a Python list or NumPy array?
pmt.blob_data() returns a 'SwigPyObject' with which I can't do anything. Passing it to a NumPy array constructor doesn't seem to do the job. The blobs are in a tuple: pmt::pmt_t b1 = pmt::make_blob(a, a_length); pmt::pmt_t b2 = pmt::make_blob(b, b_length); return pmt::make_tuple(b1, b2); And I try to check the contents of b1 in QA code like this: res = my_test_function() b1 = pmt.blob_data(pmt.tuple_ref(res, 0)) b1_len = pmt.blob_length(pmt.tuple_ref(res, 0)) Thanks, Peter _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio