mannau / h5

Interface to the HDF5 Library
Other
70 stars 22 forks source link

Trying to open a read-only file in a non-read-only mode yields a confusing error message #34

Open mbq opened 8 years ago

mbq commented 8 years ago

h5file, when run on a read-only file with a default mode a yields

ERROR: H5Fopen failed in H5File constructor

This is a confusing message, suggesting that something is wrong with the file. IMHO h5 should either infer default mode from file permissions, or produce a more explicit message.

mannau commented 8 years ago

You're right, I'm still thinking about this (implicit switch to read-only vs explicit error message).

gvdr commented 7 years ago

Any progress? It's not clear to me how to solve this (giving everybody read-write permissions is not solving it)