You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are not necessarily doing anything wrong, but just notifying people that we cannot read H5MD files produced by LAMMPS out of the box. LAMMPS does not use the units tag in the H5MD spec, meaning you must specify convert_units=False
Code to reproduce the behaviour
Have the following in LAMMPS input file
write_data system.data
dump h5md1 all h5md 100 dump.h5md position velocity force
importMDAnalysisasmdau=mda.Universe("system.data", "dump.h5md", atom_style='id type x y z', convert_units=True)
whereas the below will work,
importMDAnalysisasmdau=mda.Universe("system.data", "dump.h5md", atom_style='id type x y z', convert_units=False)
The resulting system will have units of whatever LAMMPS unit style you chose.
Current version of MDAnalysis
2.8.0dev0
The text was updated successfully, but these errors were encountered:
Expected behavior
We are not necessarily doing anything wrong, but just notifying people that we cannot read H5MD files produced by LAMMPS out of the box. LAMMPS does not use the
units
tag in the H5MD spec, meaning you must specifyconvert_units=False
Code to reproduce the behaviour
Have the following in LAMMPS input file
whereas the below will work,
The resulting system will have units of whatever LAMMPS unit style you chose.
Current version of MDAnalysis
2.8.0dev0
The text was updated successfully, but these errors were encountered: