腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
python循环中的parameter_$i
python
、
for-loop
、
parameters
我想通过for循环在增量
参数
名称中分配一些值,但在识别
参数
名称时存在一些错误,如下所示。for i in range(1,4): Name_i =
h5py.File
(filename_BS_i, "
r
")第一个for循环Name_1 =
h5py.File
(filename_1,"
r
") 第二个for循环Name_2 =
h5py.File
(filename_2,"<em
浏览 3
提问于2017-06-26
得票数 1
1
回答
H5py:在写模式下重新打开文件删除以前的数据
python
、
file
、
hdf5
、
h5py
import h5pyf.create_dataset('key1', data = np.array([1,2,3f =
h5py.File
('test','w')f.close() f =
h5py.File
(
浏览 4
提问于2015-06-26
得票数 2
回答已采纳
1
回答
尝试使用h5py库在python中打开.mat文件时出现“文件存在”错误
python
、
matlab
、
h5py
我尝试使用以下代码访问.mat文件中的部分数据(称为“掩码”): import h5pyFile "test.py", line 4, in <module> g =
h5py.File
浏览 183
提问于2019-10-01
得票数 0
1
回答
如何在hdf5文件系统中创建组的属性并访问它们?
python
、
hdf5
、
h5py
int),
h5py.File
('xaa.h5', 'w') as hdf: particles_grp#===================
浏览 6
提问于2021-09-19
得票数 0
回答已采纳
1
回答
用Python中的h5py返回字典进行模拟
python
、
pytest
、
h5py
、
pytest-mock
我的职能如下: big = f['big']我目前正在为这个函数编写一个测试,我试图通过这样的方法来模拟它: mocker.patch("
h5py.File
", new=mocker.mock_open())
浏览 2
提问于2022-04-26
得票数 1
回答已采纳
2
回答
如何从h5数据集访问随机索引?
python
、
h5py
下面是引用错误的MWE:import numpy as npwith
h5py.File
('example1.h5', 'w') as h5fw: random_subset =
h5py.File
('example1.h5', '
r
')['
浏览 6
提问于2021-02-20
得票数 0
回答已采纳
2
回答
Python HDF5展开数组
python
、
hdf5
、
h5py
我试图扩展<HDF5 5数据集“time_data”的维度: shape (2048000,63),键入"<f4">以形成(2048000,64)。在最后一列中,我想添加"<HDF5 5数据集“”time_data“中的信息: from (2048000,1),输入"<f4">”。但我不知道该怎么做。mic['time_data'].resize(64, axis = 0) 但是它返回一个<HDF5 5数据集"time_data":f4 (64,63)
浏览 4
提问于2021-09-02
得票数 0
回答已采纳
2
回答
如何关闭python列表理解中的文件?
python
、
list
、
h5py
import h5py此列表理解包含HDF5
浏览 1
提问于2017-08-30
得票数 2
回答已采纳
1
回答
在python中将数组写入h5
python
、
arrays
、
numpy
、
h5py
到目前为止,我已经:dset = f['/DATA/DATA/']f.create_dataset('/DATA/DATA/', data=(HHdB)) 这将返回错误:
浏览 3
提问于2014-10-22
得票数 1
回答已采纳
1
回答
我不能使用h5py回读数据。“无法创建组”
python
、
h5py
我正在尝试完成快速入门页面上的简单示例 f =
h5py.File
('myfile.hdf5','w')dset[...] = 42dset = ff.create_group
浏览 1
提问于2013-03-04
得票数 1
回答已采纳
1
回答
如何在不覆盖的情况下编写hdf5文件?
python
、
h5py
假设我做了以下几件事:import h5pyf.create_dataset('data1',(10))f =
h5py.File
('test.hdf5', '
r
')f.close()f =
浏览 1
提问于2015-08-09
得票数 7
回答已采纳
2
回答
h5 KeyError:“无法打开对象(对象'data‘不存在)”
h5py
hf =
h5py.File
(dir_path+'\ModelMC0105\ModelA3d1_15102020_170900005701.h5', '
r
') os.remove(dir_path+'\ModelMC0105\ModelA3d1_15102020_170900005701-slice.h5') hf2 =
h5py.File
浏览 276
提问于2020-11-10
得票数 2
1
回答
在Python中打开.h5文件
python
、
pandas
、
h5py
/vstoxx_data_31032014.h5', '
r
')options_data/vstoxx_data_31032014.h5', '
r
') File "<ipython-input-692-dc4e79ec8f8b/vstoxx_dat
浏览 2
提问于2017-10-20
得票数 9
回答已采纳
1
回答
在python3中使用h5py发现密钥
python-2.7
、
python-3.4
、
hdf5
在python2.7中,我可以使用关键字分析hdf5文件>>> import h5py>>> f.keys()然而,在python3.4中,我得到了一些不同的东西:>>> import h5py >>> f =
h5py.File
('
浏览 1
提问于2015-06-25
得票数 21
回答已采纳
1
回答
如何在h5py中更新数组?
python
、
arrays
、
numpy
、
h5py
import numpy as npa = np.random.random(size=(x, y))b = h5f['dataset_1'][:]h5f.close() h5f = <e
浏览 2
提问于2015-06-05
得票数 2
回答已采纳
1
回答
批量加载H5PY文件
python
、
h5py
假设一批有69000个条目,我希望在我的内存中只有34500个条目,训练网络,从我的内存中删除这些条目,然后加载另一半,如下所示: for n in range(1,100): outputdata=
h5py.File
("Data/OUT"+str(n),"
r
浏览 24
提问于2021-01-05
得票数 0
回答已采纳
1
回答
MATLAB与
R
2011b之间的数据传递(Windows7)
python
、
matlab
、
python-2.7
、
parameter-passing
、
language-interoperability
但是,这种方法需要MATLAB 2014版本,而不是我的MATLAB
R
2011b.。提前感谢
浏览 3
提问于2017-01-25
得票数 0
1
回答
h5py如何将数据集移动到新的组奇怪错误
python
、
move
、
h5py
我使用了,并尝试了以下操作: newgroup = h5file.create_group('bar')with
h5py.File
(fname, '
r
') as h5file:这实际上打印了数据集的正确形状with
浏览 2
提问于2020-10-27
得票数 0
2
回答
如何用h5py存储文件路径和从hdf5读取文件路径?
python-3.x
、
hdf5
、
h5py
hdf5dsetname_origin="/entry/origin/filename" with
h5py.File
(hdf5filen
浏览 85
提问于2021-05-01
得票数 0
3
回答
如何使用h5py覆盖h5文件中的数组
python
、
arrays
、
numpy
、
h5py
f1 =
h5py.File
(file_name,'
r
')f1.close()f1 =
h5py.File
(file_name,'
r
+')f1.close() 作为一个健全的检查,我使用
浏览 0
提问于2014-04-08
得票数 46
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Kotlin 具名参数&可变参数
Oracle参数文件及参数解析
课程视频|R语言bnlearn包:贝叶斯网络的构造及参数学习的原理和实例
Kotlin系列之命名参数和默认参数
R语言SVR支持向量机多元回归、网格搜索超参数优化预测猪粮比价格变动率数据
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券