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
b9936fb9
Commit
b9936fb9
authored
Mar 04, 2019
by
João Rodrigues
Browse files
Ensure coords are always in the proper units and not converted to floats
parent
b0b7548a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/modeller.py
wrappers/python/simtk/openmm/app/modeller.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/modeller.py
View file @
b9936fb9
...
@@ -1544,7 +1544,7 @@ class Modeller(object):
...
@@ -1544,7 +1544,7 @@ class Modeller(object):
if
residue
.
name
==
'HOH'
:
if
residue
.
name
==
'HOH'
:
for
atom
in
residue
.
atoms
():
for
atom
in
residue
.
atoms
():
if
atom
.
element
==
elem
.
oxygen
:
if
atom
.
element
==
elem
.
oxygen
:
waterPos
[
residue
]
=
modeller
.
positions
[
atom
.
index
]
.
value_in_unit
(
nanometer
)
waterPos
[
residue
]
=
modeller
.
positions
[
atom
.
index
]
# Calculate lipid Z boundaries
# Calculate lipid Z boundaries
lipidNames
=
{
res
.
name
for
res
in
patch
.
topology
.
residues
()
if
res
.
name
!=
'HOH'
}
lipidNames
=
{
res
.
name
for
res
in
patch
.
topology
.
residues
()
if
res
.
name
!=
'HOH'
}
...
@@ -1564,7 +1564,7 @@ class Modeller(object):
...
@@ -1564,7 +1564,7 @@ class Modeller(object):
waterResidues
=
list
(
waterPos
)
waterResidues
=
list
(
waterPos
)
for
wRes
in
waterResidues
:
for
wRes
in
waterResidues
:
waterZ
=
waterPos
[
wRes
][
2
]
waterZ
=
waterPos
[
wRes
][
2
]
if
lowerZBoundary
<
waterZ
<
upperZBoundary
:
if
lowerZBoundary
<
waterZ
.
value_in_unit
(
nanometer
)
<
upperZBoundary
:
del
waterPos
[
wRes
]
del
waterPos
[
wRes
]
self
.
_addIons
(
forcefield
,
waterPos
,
positiveIon
=
positiveIon
,
negativeIon
=
negativeIon
,
ionicStrength
=
ionicStrength
,
neutralize
=
neutralize
)
self
.
_addIons
(
forcefield
,
waterPos
,
positiveIon
=
positiveIon
,
negativeIon
=
negativeIon
,
ionicStrength
=
ionicStrength
,
neutralize
=
neutralize
)
...
...
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