-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
read_hdf
opens the store in rw
mode by default.
#9551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This seems like a big change since any code like
will now not work. The default is |
I updated the description, this doesn't actually change the behaviour on |
I see - seems reasonable to read in |
Is it possible to test this change? Either way, this needs a release note for "what's new". |
Create a hdf file and change it to read only using os.chmod. The use read_hdf...it should pass now and would have failed before. On Feb 25, 2015 3:06 PM, Stephan Hoyer [email protected] wrote: Is it possible to test this change? Either way, this needs a release note for "what's new". — |
the default mode is 'a', which is the You can write a test to validate, but since the mode is determined by this was a bug, but fixed in 0.13: #4513 |
Hmm, indeed it works locally, but if the |
Indeed, when I deny the |
It sounds like it is a platform-specific bug, but it also looks innocuous to open |
Currently the `HDFStore` is opened in `rw` mode by default, leading to permission errors when reading a non-writeable file.
@filmor I don't think this is going to be possible as the default is append (and makes more sense) |
What? For Just to make this clear, this PR does not change the default on |
Please reconsider, the patch is trivial, doesn't break anything because behaviour doesn't change and this issue is causing real problems in our systems, as people are not regularly allowed to change the shared HDF5 files. I hate to sprinkle |
you can simply use a function internal to what you do. Even if I agreed that this should be changed, this would take a month or more to make it to the next release, then you would have to update, etc.
|
Currently the
HDFStore
inread_hdf
is opened inrw
mode by default, leading to permissionerrors when reading a non-writeable file.
This patch changes the default mode to
r
.