-
Notifications
You must be signed in to change notification settings - Fork 7
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
Coordinates don't exist in output error - document hdf5 heirarchy #54
Comments
> f_hd5 = h5py.File(args.hdf5_file, "r")
> f_hdf5.keys()
<KeysViewHDF5 ['connectivity', 'h5md', 'observables', 'parameters', 'particles']>
> particles = f_hd5.get('particles')
> particles
<HDF5 group "/particles" (1 members)>
> np.array(particles)
['all'] A 'particles'-like attribute called 'coordinates' should exist. |
'coordinates' is an attribute for the input |
Isn't there a "position" attribute inside "particles"? |
Something like this:
f_hd5['particles/all/position’]
Working on it to make the conversion work. Now it doesn’t.
Samiran Sen
---------------------------------------
Hylleraas Centre for Quantum Molecular Sciences,
University of Oslo, Norway
… On 30 Mar 2021, at 11:45, Manuel Carrer ***@***.***> wrote:
Isn't there a "position" attribute inside "particles"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#54 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOHBZUVOSFG3HIZ6J4EUFQ3TGGMSPANCNFSM42BOFY7A>.
|
Actually, the H5MD format specification states that the structure should be
with the particle coordinates being called |
Not entirely sure if you fixed this yet or what you want to use it for, but #5 and #31 might be useful for functionality to convert HyMD output to HyMD input if that is your intended use. |
Exactly...there is a nomenclature mismatch between input and output files, though both are .h5 files. |
@samiransen23 Yes, I think we talked about matching them up in one of our previous meetings, just no one got around to actually doing it yet. It is an artifact of Sigbjørn using a different standard of trajectory output in the earlier code. H5MD is just one of several different trajectory format specifications that people have defined under the HDF5 file type. I believe the one Sigbjørn was (somewhat loosely) following was MDTraj HDF5. |
Coordinates don't exist in output error for
utils/hdf_to_gro.py
sim.h5
is a short trajectory output of the sampledppc.gro
inHyMD-2021/
The text was updated successfully, but these errors were encountered: