如果您需要处理自定义的int16数据类型,我想您需要使用
numpy.array
像这样(未选中):
import numpy as np
# read file or stream in binary mode into a bin_array list
...
# convert binnary input values to numpy array with container type int16
np.array([v for v in bin_array], dtype=np.int16)