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
276e8f4d
"wrappers/python/vscode:/vscode.git/clone" did not exist on "71bc7c8c70ffbccd82891dec7fd4f4deb99af64d"
Commit
276e8f4d
authored
May 15, 2018
by
peastman
Browse files
Improve error checking
parent
e4e94dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wrappers/python/simtk/openmm/app/pdbfile.py
wrappers/python/simtk/openmm/app/pdbfile.py
+2
-1
No files found.
wrappers/python/simtk/openmm/app/pdbfile.py
View file @
276e8f4d
...
...
@@ -375,7 +375,8 @@ class PDBFile(object):
line
=
"%s%5d %-4s %3s %s%4s%1s %s%s%s 1.00 0.00 %2s "
%
(
recordName
,
atomIndex
%
100000
,
atomName
,
resName
,
chainName
,
resId
,
resIC
,
_format_83
(
coords
[
0
]),
_format_83
(
coords
[
1
]),
_format_83
(
coords
[
2
]),
symbol
)
assert
len
(
line
)
==
80
,
'Fixed width overflow detected'
if
len
(
line
)
!=
80
:
raise
ValueError
(
'Fixed width overflow detected'
)
print
(
line
,
file
=
file
)
posIndex
+=
1
atomIndex
+=
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