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
e4b38cce
Commit
e4b38cce
authored
Apr 17, 2013
by
Peter Eastman
Browse files
Bug fixes
parent
efa09228
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/gromacsgrofile.py
wrappers/python/simtk/openmm/app/gromacsgrofile.py
+1
-1
wrappers/python/simtk/openmm/app/pdbfile.py
wrappers/python/simtk/openmm/app/pdbfile.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/gromacsgrofile.py
View file @
e4b38cce
...
@@ -137,7 +137,7 @@ class GromacsGroFile(object):
...
@@ -137,7 +137,7 @@ class GromacsGroFile(object):
xyz
.
append
(
Vec3
(
pos
[
0
],
pos
[
1
],
pos
[
2
]))
xyz
.
append
(
Vec3
(
pos
[
0
],
pos
[
1
],
pos
[
2
]))
elif
_is_gro_box
(
line
)
and
ln
==
na
+
2
:
elif
_is_gro_box
(
line
)
and
ln
==
na
+
2
:
sline
=
line
.
split
()
sline
=
line
.
split
()
boxes
.
append
([
float
(
i
)
for
i
in
sline
]
*
nanometers
)
boxes
.
append
(
tuple
(
[
float
(
i
)
for
i
in
sline
]
)
*
nanometers
)
xyzs
.
append
(
xyz
*
nanometers
)
xyzs
.
append
(
xyz
*
nanometers
)
xyz
=
[]
xyz
=
[]
ln
=
-
1
ln
=
-
1
...
...
wrappers/python/simtk/openmm/app/pdbfile.py
View file @
e4b38cce
...
@@ -263,7 +263,7 @@ class PDBFile(object):
...
@@ -263,7 +263,7 @@ class PDBFile(object):
if
modelIndex
is
not
None
:
if
modelIndex
is
not
None
:
print
>>
file
,
"MODEL %4d"
%
modelIndex
print
>>
file
,
"MODEL %4d"
%
modelIndex
for
(
chainIndex
,
chain
)
in
enumerate
(
topology
.
chains
()):
for
(
chainIndex
,
chain
)
in
enumerate
(
topology
.
chains
()):
chainName
=
chr
(
ord
(
'A'
)
+
chainIndex
)
chainName
=
chr
(
ord
(
'A'
)
+
chainIndex
%
26
)
residues
=
list
(
chain
.
residues
())
residues
=
list
(
chain
.
residues
())
for
(
resIndex
,
res
)
in
enumerate
(
residues
):
for
(
resIndex
,
res
)
in
enumerate
(
residues
):
if
len
(
res
.
name
)
>
3
:
if
len
(
res
.
name
)
>
3
:
...
...
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