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
318ba800
Unverified
Commit
318ba800
authored
Oct 21, 2019
by
peastman
Committed by
GitHub
Oct 21, 2019
Browse files
Merge pull request #2429 from peastman/lonepair
Fixed range error when adding lone pairs from PSF file
parents
ecae836c
4f437591
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/simtk/openmm/app/charmmpsffile.py
wrappers/python/simtk/openmm/app/charmmpsffile.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/charmmpsffile.py
View file @
318ba800
...
@@ -934,7 +934,7 @@ class CharmmPsfFile(object):
...
@@ -934,7 +934,7 @@ class CharmmPsfFile(object):
atom1
=
lpsite
[
1
]
atom1
=
lpsite
[
1
]
atom2
=
lpsite
[
2
]
atom2
=
lpsite
[
2
]
atom3
=
lpsite
[
3
]
atom3
=
lpsite
[
3
]
if
atom3
>
0
:
if
atom3
>
=
0
:
if
lpsite
[
4
]
>
0
:
# relative lonepair type
if
lpsite
[
4
]
>
0
:
# relative lonepair type
r
=
lpsite
[
4
]
/
10.0
# in nanometer
r
=
lpsite
[
4
]
/
10.0
# in nanometer
xweights
=
[
-
1.0
,
0.0
,
1.0
]
xweights
=
[
-
1.0
,
0.0
,
1.0
]
...
...
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