diff options
-rwxr-xr-x | scripts/display-hdf5 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/display-hdf5 b/scripts/display-hdf5 index c203df20..f65da9e4 100755 --- a/scripts/display-hdf5 +++ b/scripts/display-hdf5 @@ -8,7 +8,7 @@ if len(sys.argv) != 3: print("Syntax: {} file.h5 /data/location\n".format(sys.argv[0])) sys.exit(1) -fh = h5py.File(sys.argv[1]) +fh = h5py.File(sys.argv[1], 'r') dataset = fh[sys.argv[2]] show = plt.figure() |