Cant create empty datasets

190 views
Skip to first unread message

Sebastian Rücker

unread,
Aug 2, 2016, 6:29:01 AM8/2/16
to h5py

Hi!

 

I am using h5py version 2.6.0:

h5py    2.6.0

HDF5    1.8.16

Python  3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)]

sys.platform    win32

sys.maxsize     9223372036854775807

numpy   1.11.1

 

I am was trying to create an empty dataset like this:

f = h5py.File('foo.hdf5', 'w')
grp = f.create_group(
"bar")

grp["bar"] =  h5py.Empty("f")
 
…and like this:
grp.create_dataset(
"EmptyDataset", data=h5py.Empty("f"))

 

Both lines lead to the same error:

E       AttributeError: module 'h5py' has no attribute 'Empty'

 

I was trying to follow this documentation:

http://docs.h5py.org/en/latest/high/dataset.html#creating-and-reading-empty-or-null-datasets-and-attributes

 

Was I doing something wrong, or is this a bug?

 

Regards,

Sebastian

Reply all
Reply to author
Forward
0 new messages