Skip to content

Format of trajectory #11

@J-You

Description

@J-You

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions