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
2846ca7e
"vscode:/vscode.git/clone" did not exist on "4f858162f952fe0e46ff4842ee3bd67c0d8e1af2"
Commit
2846ca7e
authored
Apr 11, 2017
by
peastman
Browse files
Fixed error on Python 2
parent
c04e70d9
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 @
2846ca7e
...
@@ -123,7 +123,7 @@ class PDBFile(object):
...
@@ -123,7 +123,7 @@ class PDBFile(object):
# Try to guess the element.
# Try to guess the element.
upper
=
atomName
.
upper
()
upper
=
atomName
.
upper
()
while
len
(
upper
)
>
1
and
upper
[
0
].
is
numeric
():
while
len
(
upper
)
>
1
and
upper
[
0
].
is
digit
():
upper
=
upper
[
1
:]
upper
=
upper
[
1
:]
if
upper
.
startswith
(
'CL'
):
if
upper
.
startswith
(
'CL'
):
element
=
elem
.
chlorine
element
=
elem
.
chlorine
...
...
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