2024-10-04 09:23:09 发布
网友
我是zarr,HDF5和LMDB的新手。我已将数据从HDF5转换为Zarr,但我得到了许多扩展名为.n(n从0到31)的文件。我只想要一个扩展名为.zarr的文件。我试着用LMDB(扎尔LMDBStore函数),但我不知道如何创建.mdb文件?你知道怎么做吗? 谢谢您!你知道吗
@kish在尝试你的解决方案时,我犯了一个错误:
从通信类型.gen导入访问 ImportError:无法导入名称“Access”
在documentation for the LMDBStore class中有一些使用LMDB作为Zarr存储的示例。例如:
>>> store = zarr.LMDBStore('data/group.mdb') >>> root = zarr.group(store=store, overwrite=True) >>> foo = root.create_group('foo') >>> bar = foo.zeros('bar', shape=(10, 10), chunks=(5, 5)) >>> bar[...] = 42 >>> store.close() # don't forget to call this when you're done
创建.mdb文件不需要执行上述操作,它将自动创建。你知道吗
@kish在尝试你的解决方案时,我犯了一个错误:
从通信类型.gen导入访问 ImportError:无法导入名称“Access”
在documentation for the LMDBStore class中有一些使用LMDB作为Zarr存储的示例。例如:
创建.mdb文件不需要执行上述操作,它将自动创建。你知道吗
相关问题 更多 >
编程相关推荐