Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
b57a5a63
Unverified
Commit
b57a5a63
authored
Feb 01, 2023
by
Han Y.B
Committed by
GitHub
Jan 31, 2023
Browse files
fix: py Interface omit errors in xml attributes. (#3928)
parent
42127197
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
wrappers/python/openmm/app/forcefield.py
wrappers/python/openmm/app/forcefield.py
+5
-12
No files found.
wrappers/python/openmm/app/forcefield.py
View file @
b57a5a63
...
@@ -3495,14 +3495,11 @@ class AmoebaAngleGenerator(object):
...
@@ -3495,14 +3495,11 @@ class AmoebaAngleGenerator(object):
angleList
=
[]
angleList
=
[]
angleList
.
append
(
float
(
angle
.
attrib
[
'angle1'
]))
angleList
.
append
(
float
(
angle
.
attrib
[
'angle1'
]))
try
:
if
'angle2'
in
angle
.
attrib
:
angleList
.
append
(
float
(
angle
.
attrib
[
'angle2'
]))
angleList
.
append
(
float
(
angle
.
attrib
[
'angle2'
]))
try
:
if
'angle3'
in
angle
.
attrib
:
angleList
.
append
(
float
(
angle
.
attrib
[
'angle3'
]))
angleList
.
append
(
float
(
angle
.
attrib
[
'angle3'
]))
except
:
pass
except
:
pass
generator
.
angle
.
append
(
angleList
)
generator
.
angle
.
append
(
angleList
)
generator
.
k
.
append
(
float
(
angle
.
attrib
[
'k'
]))
generator
.
k
.
append
(
float
(
angle
.
attrib
[
'k'
]))
if
'inPlane'
in
angle
.
attrib
:
if
'inPlane'
in
angle
.
attrib
:
...
@@ -4967,11 +4964,7 @@ class AmoebaMultipoleGenerator(object):
...
@@ -4967,11 +4964,7 @@ class AmoebaMultipoleGenerator(object):
kStrings
=
[
'kz'
,
'kx'
,
'ky'
]
kStrings
=
[
'kz'
,
'kx'
,
'ky'
]
for
kString
in
kStrings
:
for
kString
in
kStrings
:
try
:
kIndices
.
append
(
int
(
atom
.
attrib
.
get
(
kString
,
0
)))
if
(
atom
.
attrib
[
kString
]):
kIndices
.
append
(
int
(
atom
.
attrib
[
kString
]))
except
:
pass
# set axis type based on k-Indices
# set axis type based on k-Indices
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment