JPype从JArray获取numpy数组

时间:2017-01-27 22:19:36

标签: jpype

是否可以从JArray的字节中获取numpy数组?我需要访问原始字节,当我尝试:

numpy.frombuffer(jpype_object)

它停留在:

AttributeError: 'byte[]' object has no attribute '__buffer__'

1 个答案:

答案 0 :(得分:0)

看起来像我正在寻找的数组切片:

https://github.com/originell/jpype/pull/73