Skip to content

Commit

Permalink
fix: set bond order of am (#81)
Browse files Browse the repository at this point in the history
* fix: set bond order of am

* Fixing style errors.
  • Loading branch information
njzjz authored Sep 12, 2019
1 parent b9a1903 commit 7bfdd71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mddatasetbuilder/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def _crd2bond(cls, step_atoms, readlevel):
elif s2 >= atomnumber:
s2 = realnumber[s2-atomnumber]
if readlevel:
level = 9 if s[3] == 'ar' else int(s[3])
level = 9 if s[3] == 'ar' else (
1 if s[3] == 'am' else int(s[3]))
bondlevel[s1].append(level)
bondlevel[s2].append(level)
else:
Expand Down

0 comments on commit 7bfdd71

Please sign in to comment.