[Errno 22]无效参数

时间:2017-03-30 12:14:10

标签: python python-3.x numpy scipy

我有一个数组f,其形状为(100, 2, 3, 56730, 10, 1) 当我尝试使用savemat('file.mat', dict(f=f))保存时,我收到了错误

    475 
    476     def write_bytes(self, arr):
--> 477         self.file_stream.write(arr.tostring(order='F'))
    478 
    479     def write_string(self, s):

OSError: [Errno 22] Invalid argument

但不是在我运行savemat('file.mat', dict(f=[0, 1, 2))

这是因为我的变量f太大了吗? 对于记录firingRates.nbytes2723040000

我想这意味着它大约是2GB

0 个答案:

没有答案