Skip to content
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

fullFieldXASv1/bin/hdf5_merge.py set_cache not working #25

Open
egroeper opened this issue Feb 2, 2013 · 1 comment
Open

fullFieldXASv1/bin/hdf5_merge.py set_cache not working #25

egroeper opened this issue Feb 2, 2013 · 1 comment

Comments

@egroeper
Copy link

egroeper commented Feb 2, 2013

Searching for a way to change the HDF5 cache settings using the h5py high level interface, I found the source of hdf5_merge.py and tried to adapt the specific code snippet of the set_cache() method to my needs. But it simply didn't work.
Because of that, I asked a question on StackOverflow and SO user unutbu pointed out, that f.id.get_access_plist() returns a copy. Therefore calling set_cache on that copy doesn't make any change to the file.
Just wanted to let you know, that setting the cache properties in your hdf5_merge.py doesn't work. You need to adapt create_output method to open the file using the low level interface. Afterwards you can create a h5py.File object using the file id (see unutbus answer to my SO question).

@kif
Copy link
Contributor

kif commented Apr 17, 2013

Thanks a lot for the warning ...
And sorry for not looking at the bug tracker before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants