FileInputProcessor.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:neurodriver 作者: neurokernel 项目源码 文件源码
def __init__(self, filename, mode=0):
        self.filename = filename
        h5file = h5py.File(self.filename, 'r')
        var_list = []
        for var, g in h5file.items():
            if not isinstance(g, h5py.Group): continue
            uids = g.get('uids')[()].tolist()
            var_list.append((var, uids))
        super(FileInputProcessor, self).__init__(var_list, mode)
        h5file.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号