如何使用pytables創建巨大的numpy數組。我試過這個,但給了我「ValueError:數組太大了。」錯誤:使用pytables構建巨大的numpy數組
import numpy as np
import tables as tb
ndim = 60000
h5file = tb.openFile('test.h5', mode='w', title="Test Array")
root = h5file.root
h5file.createArray(root, "test", np.zeros((ndim,ndim), dtype=float))
h5file.close()