Skip to content

Commit

Permalink
fix bug with castep
Browse files Browse the repository at this point in the history
avoid double counting of atomic masses
  • Loading branch information
smutao committed Feb 27, 2022
1 parent 39ee04d commit f24d6d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
LModeA-nano: Local Vibrational Mode Analysis for Solids and Molecules
as a PyMOL Plugin
Ver 1.0.0 - Feb 15, 2022
Ver 1.0.1 - Feb 26, 2022
Author: Yunwen Tao, Ph.D.
Expand Down Expand Up @@ -1795,7 +1795,7 @@ def load_castep_xyz(outfile,obj):
if lab >= 1 and lab < 3 :
lab = lab + 1
continue
if lab >= 3 and lab < (3+natom):
if lab >= 3 and lab < (3+natom) and len(global_mass) < natom :
#print(line)
elem.append(line.split()[1])
e = line.split()[1]
Expand Down Expand Up @@ -3068,7 +3068,7 @@ def title():
8 8 8 8 8 8 8 8. .P 8 8 `b8 8 8 8 8 8 8 \n\
8oooo 8 8 `YooP' `YooP' `Yooo' .P 8 8 `8 `YooP8 8 8 `YooP' \n\n\n"

authorship = " "*39+" Ver 1.0.0 \n"+" "*38+" Feb 15, 2022 \n"+" "*28+" Developed by: Yunwen Tao, Ph.D.\n"
authorship = " "*39+" Ver 1.0.1 \n"+" "*38+" Feb 26, 2022 \n"+" "*28+" Developed by: Yunwen Tao, Ph.D.\n"

return logo,authorship

Expand Down

0 comments on commit f24d6d7

Please sign in to comment.