Skip to content

Commit 530e7f4

Browse files
authored
Use latest HDF5 library in h5py for Store V2 (#1002)
1 parent b159086 commit 530e7f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/amuse/io/store_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,11 @@ def __init__(
740740
if append_to_file:
741741
if os.access(filename, os.F_OK) and not os.access(filename, os.W_OK):
742742
raise Exception("Opening file for append but file {0} is not writeable".format(filename))
743-
self.hdf5file = h5py.File(filename,'a')
743+
self.hdf5file = h5py.File(filename,'a',libver='latest')
744744
elif open_for_writing:
745-
self.hdf5file = h5py.File(filename,'w')
745+
self.hdf5file = h5py.File(filename,'w',libver='latest')
746746
else:
747-
self.hdf5file = h5py.File(filename,'r')
747+
self.hdf5file = h5py.File(filename,'r',libver='latest')
748748

749749
self.copy_history = copy_history
750750
self.mapping_from_groupid_to_set = {}

0 commit comments

Comments
 (0)