-
Notifications
You must be signed in to change notification settings - Fork 27
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
Changing property raises exception in 1.5.0 #511
Comments
I am not sure, I can't reproduce the error. Do you intend to append a new value to the
|
Aha! This only happens if the original is created in 1.4.9 and upgraded to 1.5.0 and then the text is appended. E.g.: filename = 'test.h5'
def run_in_1_4_9():
f = nix.File.open(filename, nix.FileMode.Overwrite)
f.create_section('app_logs', 'log')
f.sections['app_logs']['notes'] = ''
f.close()
def run_in_1_5_0():
f = nix.File.open(filename, nix.FileMode.ReadWrite)
f.sections['app_logs']['notes'] += 'app notes'
f.close()
if __name__ == '__main__':
run_in_1_4_9()
# run_in_1_5_0() Then, in 1.4.9 run My goal is to extend the string to make the string larger. |
If I change in the upgrade.py file |
ah, this is a good catch, thank you! Maybe @achilleas-k has some insights into this. |
You're right. Datasets should be created with chunked storage: Lines 30 to 33 in 60154df
This was also true in v1.4.9. The converter/upgrade script should do the same. EDIT: If the storage isn't chunked and the size of a dataset isn't specified as dynamic, then datasets have fixed size by default, which is why you can't append to it. |
I'm testing out 1.5.0 and I ran into the following issue:
I have code that looks like:
This worked fine in 1.4.9. But with 1.5.0 I get the following error from my pytest tests:
I imagine this has something to do with #432, but I don't fully understand how/if that disables chunking. Is there perhaps an alternate way to append to a property?
The text was updated successfully, but these errors were encountered: