-
Notifications
You must be signed in to change notification settings - Fork 14
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
'model' parameters are not stored in the HDF5 ouput #11
Comments
You may be looking at different locations. |
Ok, that is true. Is there a reason to have a 'definitions' group as well as a 'dictionary' group? How about setting the correct values in the 'definitions' group and removing the 'dictionary' group, since it is superfluous in that case? That will clean up the output file. Backwards compatibility will be broken though... |
The reason of having 'definitions' group is that it keeps part of the state of parameter object. Essentially, the content of the archive file is a result of serialization of parameters object, so it also contains some book-keeping info. I am working now on a new version of parameters (where i intend to break the backward compatibility anyway) and i will see how we can make the archive file cleaner. |
yeah, this is one of reasons why I want to publish "official" Python bindings of ALPSCore. It will allow users to read data from a HDF5 file without knowing the underlying data format. |
I am not so convinced about the usefulness of python bindings. It is good for pedagogical purposes, but I imagine that most users develop their own code for the self-consistent loop. Most likely, this code is not written in Python, hence the best option for them is to access the h5 file directly, from whatever language they use, most likely C, C++, Fortran. For what it's worth, I have never used any of these bindings in the matrix or the segment code (including the Alps 2.0 version, which offered some), except for running some tutorials, and even then, it is not that easy to get the python setup to work. It is already sometimes a not so easy matter to get the compilation and execution in a compiled language to run, but setting up a python environment on top of it is a pain I find not worth the effort. In a nutshell, I would say that the level of expertise that is required to use this kind of code is such that it makes "black box interfaces" like python bindings not very useful. But that is only my personal experience of course. |
Thank you for the comment. Regarding the CT-HYB code, |
Most 'model' parameters are not stored correctly in the HDF5 file in the 'model' section. The values of
were either zero or empty, depending on the datatype. I'm not sure about
/parameters/definitions/model.basis_input_file Dataset {SCALAR}
since I don't use it.
The text was updated successfully, but these errors were encountered: