[lammps-users] log.py still has a problem

Hello everyone,

I patched log.py with “patch.16Dec05.txt” but I still got an error message.

Traceback (most recent call last):
File “”, line 1, in ?
File “/home/oioioioi/MD_utilities/pizza-7Nov05/src/log.py”, line 83, in init
File “/home/oioioioi/MD_utilities/pizza-7Nov05/src/log.py”, line 95, in read_all
File “/home/oioioioi/MD_utilities/pizza-7Nov05/src/log.py”, line 244, in read_header
keyword = re.search(pattern,fields[i]).group(1)
AttributeError: ‘NoneType’ object has no attribute ‘group’

My “lammps.log” uses style “multi”.
After comparing current LAMMPS (10Nov05) log file with previous LAMMPS (3Jun05) log file, I found that current LAMMPS leaves one empty space at the end of thermodynamic property line, while previous LAMMPS does not. So I changed line 222 in log.py as follows.

line 222: s3 = txt.find("\n–",s1) -----> s3 = txt.find("\n–",s1) - 1

It looks working well after modification, but I am not sure.
Can anybody give me a clear explanation?


Jihoon Kang