-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Thanks for your selflessly publish this code.
I have got a problem:
"""
beginning COM calculation
Traceback (most recent call last):
File "PyLAT.py", line 254, in
(comx, comy, comz, Lx, Ly, Lz, Lx2, Ly2, Lz2) = c.calcCOM(trjfilename,datfilename, ver)
File "/home/why/PyLAT-master/src/calcCOM.py", line 47, in calcCOM
(xcol, ycol, zcol, molcol, typecol) = self.getcolumns(trjfilename[0])
File "/home/why/PyLAT-master/src/calcCOM.py", line 122, in getcolumns
molcol = inline.index('mol')
ValueError: 'mol' is not in list
"""
It is caused by the different format of my dump file, which is "ITEM: ATOMS id type x y z vx vy vz "
I'm not sure the dump format identified by PYLAT. It seems not exist in "example" distribution.
I also have a problem of what is the difference between 'mol' and 'type', in calcCOM.py, line 122, 123.
In fact, my system don't have molecules. It is all consisted by atoms.
In my view, both of 'mol' and 'type' signify atom type in data file.
Thanks for your time and attention.