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
5d8e92ff
"vscode:/vscode.git/clone" did not exist on "6073a3bb72bb27cc5e2c5bcdbb10e06a67c3d50e"
Commit
5d8e92ff
authored
Feb 02, 2015
by
Jason Swails
Browse files
Use the correct index this time.
parent
26574a3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
...ers/python/simtk/openmm/app/internal/amber_file_parser.py
+4
-4
No files found.
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
View file @
5d8e92ff
...
...
@@ -566,10 +566,10 @@ class PrmtopLoader(object):
screen
[
i
]
=
0.5
# radii is currently in Angstroms right now. GBn lookup tables
# only support radii between 1.0 and 2.0
if
radii
[
r
]
<
1.0
or
radii
[
r
]
>
2.0
:
if
radii
[
i
]
<
1.0
or
radii
[
i
]
>
2.0
:
raise
ValueError
(
'GBn requires intrinsic radii between 1 and '
'2 Angstroms (%.3f found for atom %d)'
%
(
radii
[
r
],
i
))
(
radii
[
i
],
i
))
if
gbmodel
==
'GBn2'
:
if
elements
is
None
:
raise
Exception
(
'GBn2 model requires element information'
)
...
...
@@ -606,10 +606,10 @@ class PrmtopLoader(object):
gamma
[
i
]
=
4.85
# radii is currently in Angstroms right now. GBn lookup tables
# only support radii between 1.0 and 2.0
if
radii
[
r
]
<
1.0
or
radii
[
r
]
>
2.0
:
if
radii
[
i
]
<
1.0
or
radii
[
i
]
>
2.0
:
raise
ValueError
(
'GBn2 requires intrinsic radii between 1 and '
'2 Angstroms (%.3f found for atom %d)'
%
(
radii
[
r
],
i
))
(
radii
[
i
],
i
))
lengthConversionFactor
=
units
.
angstrom
.
conversion_factor_to
(
units
.
nanometer
)
if
gbmodel
==
'GBn2'
:
for
rad
,
scr
,
alp
,
bet
,
gam
in
zip
(
radii
,
screen
,
alpha
,
beta
,
gamma
):
...
...
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