Skip to content

Commit

Permalink
explicitly add h5py dataset open mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunjiangZhu committed Jul 9, 2020
1 parent ee4216f commit 5467067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ann_benchmarks/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_dataset(which):
print("Creating dataset locally")
DATASETS[which](hdf5_fn)

hdf5_f = h5sparse.File(hdf5_fn)
hdf5_f = h5sparse.File(hdf5_fn, 'r')
return hdf5_f


Expand Down

0 comments on commit 5467067

Please sign in to comment.