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
6c6161cb
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "62cc2344329abfa3a89c10e0e33a642ac51468d4"
Commit
6c6161cb
authored
Jan 03, 2012
by
Peter Eastman
Browse files
Fixed bug in recognizing incomplete TER records in PDB files
parent
95093334
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/simtk/openmm/app/internal/pdbstructure.py
wrappers/python/simtk/openmm/app/internal/pdbstructure.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/internal/pdbstructure.py
View file @
6c6161cb
...
@@ -133,7 +133,7 @@ class PdbStructure(object):
...
@@ -133,7 +133,7 @@ class PdbStructure(object):
self
.
_current_model
.
_finalize
()
self
.
_current_model
.
_finalize
()
if
not
self
.
load_all_models
:
if
not
self
.
load_all_models
:
break
break
elif
(
pdb_line
.
find
(
"TER
"
)
==
0
):
elif
(
pdb_line
.
find
(
"TER"
)
==
0
and
pdb_line
.
split
()[
0
]
==
"TER"
):
self
.
_current_model
.
_current_chain
.
_add_ter_record
()
self
.
_current_model
.
_current_chain
.
_add_ter_record
()
elif
(
pdb_line
.
find
(
"CRYST1"
)
==
0
):
elif
(
pdb_line
.
find
(
"CRYST1"
)
==
0
):
self
.
_unit_cell_dimensions
=
(
float
(
pdb_line
[
6
:
15
]),
float
(
pdb_line
[
15
:
24
]),
float
(
pdb_line
[
24
:
33
]))
*
unit
.
angstroms
self
.
_unit_cell_dimensions
=
(
float
(
pdb_line
[
6
:
15
]),
float
(
pdb_line
[
15
:
24
]),
float
(
pdb_line
[
24
:
33
]))
*
unit
.
angstroms
...
...
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