-
Notifications
You must be signed in to change notification settings - Fork 823
Description
Expected behavior
Loading the testfile wat.lammpstrj should return the input coordinates.
Actual behavior
The coordinates returned by the reader are scaled with the box dimension.
Code to reproduce the behavior
import MDAnalysis as mda
u = mda.Universe('wat.lammpstrj', format='LAMMPSDUMP')
print (u.atoms.positions)However,
print (u.atoms.positions/u.dimensions[:3])
returns the expexted coordinates.
Currently version of MDAnalysis
I tried 0.19.0 and 0.19.1. For some reason the same command with 0.19.2 returns an Error: need more than 2 values to unpack just after reading the first frame, but I guess that's a separate issue.
Additional Information
I realized in your corresponding test in reference_position you also multiply the coordinates by the box dimension?
So maybe I'm missing something in case this is done on purpose but in the source code I also did not see where the multiplication by the box length would happen...