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
I am trying to convert a gro file to a lammps data file using the following command:
import dpdata
data = dpdata.System("test.gro")
data.to_lammps_lmp("test.data")
print(data.get_atom_names())
and I expect to get "['Li', 'Cl', 'P', 'S']" (the order of the elements in the gro file), but I get "['P', 'Cl', 'Li', 'S']" instead. The order of the elements is changed. Even though I could get the correct order by supplying type_map, I still think element order should not be changed by the conversion.
Bug summary
I am trying to convert a gro file to a lammps data file using the following command:
and I expect to get "['Li', 'Cl', 'P', 'S']" (the order of the elements in the gro file), but I get "['P', 'Cl', 'Li', 'S']" instead. The order of the elements is changed. Even though I could get the correct order by supplying type_map, I still think element order should not be changed by the conversion.
dpdata Version
0.2.21
Input Files, Running Commands, Error Log, etc.
test.gro
Steps to Reproduce
Further Information, Files, and Links
test.data
The text was updated successfully, but these errors were encountered: