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
3eb4fe2e
Commit
3eb4fe2e
authored
Mar 13, 2012
by
Peter Eastman
Browse files
Avoid writing numbers that are too large to fit in the allowed set of columns
parent
e59e15b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+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/pdbfile.py
View file @
3eb4fe2e
...
@@ -214,7 +214,7 @@ class PDBFile(object):
...
@@ -214,7 +214,7 @@ class PDBFile(object):
else
:
else
:
atomName
=
atom
.
name
atomName
=
atom
.
name
coords
=
positions
[
posIndex
]
coords
=
positions
[
posIndex
]
print
>>
file
,
"ATOM %5d %-4s %3s %s%4d %8.3f%8.3f%8.3f 1.00 0.00"
%
(
atomIndex
,
atomName
,
resName
,
chainName
,
resIndex
+
1
,
coords
[
0
],
coords
[
1
],
coords
[
2
])
print
>>
file
,
"ATOM %5d %-4s %3s %s%4d %8.3f%8.3f%8.3f 1.00 0.00"
%
(
atomIndex
%
100000
,
atomName
,
resName
,
chainName
,
(
resIndex
+
1
)
%
10000
,
coords
[
0
],
coords
[
1
],
coords
[
2
])
posIndex
+=
1
posIndex
+=
1
atomIndex
+=
1
atomIndex
+=
1
if
resIndex
==
len
(
residues
)
-
1
:
if
resIndex
==
len
(
residues
)
-
1
:
...
...
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