-
Notifications
You must be signed in to change notification settings - Fork 18
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
numpy arrays read from attributes are not writable #53
Comments
The main issue is obviously that Line 223 in 6348231
I've tested this adding a Wouldn't it make sense to use the same approach here as in Lines 445 to 459 in 6348231
Not sure how much will be involved to make that change. @bmaranville Do you have any thoughts on that? |
I think the data access methods for attributes and datasets are almost the same, but we are handling them separately, and with different datatypes enabled for each: Attribute
Dataset
I suspect there would be a big benefit from combining the handling of reading data from attributes and datasets, so that the combined feature set would be better for both. |
I'm trying to wrap my head around the following issue. Arrays read from Datasets are created with numpy.memmap with "copyonwrite" flag set. So these numpy arrays can be changed in memory but not in the file. This is not true for arrays read from attributes. There we get back a numpy.ndarray with the writable-flag set to
FALSE
. An MCVE is attached below.I was already looking where the flag might be set and why, but didn't come far. Any hints much appreciated.
MCVE:
The text was updated successfully, but these errors were encountered: