打开大型CArray时,viTables和HDFView内存错误

时间:2014-06-03 18:28:09

标签: python hdf5 pytables

当打开由pytables代码生成的大型carray时,viTables和HDFView都会返回内存错误。看起来观众试图将整个carray读入内存并失败。实际上是这种情况还是我在做什么?

直接从python脚本打开carray并尝试打印整个carray也会产生内存错误。

使用carray创建hdf5,如下所示:

import tables as pytab
pytfile = pytab.File("bigcarray.hdf",'w','Test of Big CArray')
grpData = pytfile.createGroup('/','data')
pytfile.createCArray(grpData,'TestData',pytab.Float64Atom(), (10000,10000))
pytfile.close()

并在viTable或HDFView中打开会导致内存错误问题。

0 个答案:

没有答案
相关问题