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
aba4c054
"platforms/vscode:/vscode.git/clone" did not exist on "c87cee062c773c2bcba0ef655bab9d3f91cb5bf4"
Commit
aba4c054
authored
Mar 19, 2015
by
Jason Swails
Browse files
Fix old behavior.
parent
eb215a4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
...ers/python/simtk/openmm/app/internal/amber_file_parser.py
+2
-3
No files found.
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
View file @
aba4c054
...
@@ -783,9 +783,8 @@ def readAmberSystem(topology, prmtop_filename=None, prmtop_loader=None, shake=No
...
@@ -783,9 +783,8 @@ def readAmberSystem(topology, prmtop_filename=None, prmtop_loader=None, shake=No
atomI
=
topatoms
[
iAtom
]
atomI
=
topatoms
[
iAtom
]
atomJ
=
topatoms
[
jAtom
]
atomJ
=
topatoms
[
jAtom
]
atomK
=
topatoms
[
kAtom
]
atomK
=
topatoms
[
kAtom
]
numH
=
((
atomI
.
element
.
atomic_number
==
1
)
+
(
atomJ
.
element
.
atomic_number
==
1
)
+
numH
=
((
atomI
.
element
.
atomic_number
==
1
)
+
(
atomK
.
element
.
atomic_number
==
1
))
(
atomK
.
element
.
atomic_number
==
1
))
constrained
=
(
numH
==
2
or
(
numH
==
1
and
atomJ
.
element
is
elem
.
oxygen
))
constrained
=
(
numH
==
2
or
(
numH
==
1
and
atomK
.
element
is
elem
.
oxygen
))
else
:
else
:
constrained
=
False
constrained
=
False
if
constrained
:
if
constrained
:
...
...
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