diff --git a/tests/make_resizable.py b/tests/make_resizable.py new file mode 100644 index 0000000..7686d1e --- /dev/null +++ b/tests/make_resizable.py @@ -0,0 +1,22 @@ +#! /usr/bin/env python +""" Create a HDF5 file with data with an resizable datasets. """ + +import h5py +import numpy as np + +f = h5py.File('resizable.hdf5', 'w', libver='earliest') + +f.create_dataset( + 'dataset1', shape=(4, 6), maxshape=(8, 12), dtype='i2'