pyanitools.py 文件源码

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

项目:ANI1_dataset 作者: isayev 项目源码 文件源码
def store_data(self, store_loc, **kwargs):
        """Put arrays to store
        """
        #print(store_loc)
        g = self.store.create_group(store_loc)
        for k, v, in kwargs.items():
            #print(type(v[0]))

            #print(k)
            if type(v) == list:
                if len(v) != 0:
                    if type(v[0]) is np.str_ or type(v[0]) is str:
                        v = [a.encode('utf8') for a in v]

            g.create_dataset(k, data=v, compression=self.clib, compression_opts=self.clev)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号