Skip to content
Snippets Groups Projects
Commit 81de9df3 authored by pascal's avatar pascal
Browse files

re-enter default path for PDB-file in DSSP

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1959 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent c3fb76bb
No related branches found
No related tags found
No related merge requests found
......@@ -63,13 +63,12 @@ def _CalcRelativeSA(residue_type, absolute_sa):
def AssignDSSP(ent, pdb_path="", extract_burial_status_flag=0, tmp_dir=None):
entity_saved_flag = 0
if pdb_path=="":
# use of mktemp is a safty problem (use mkstemp and provide file handle to
# subsequent process
pdb_path=tempfile.mktemp(suffix=".pdb",prefix="temp_entity",
dir=tmp_dir)
io.SaveEntity(ent, pdb_path)
entity_saved_flag = 1
# use of mktemp is a safty problem (use mkstemp and provide file handle to
# subsequent process
pdb_path=tempfile.mktemp(suffix=".pdb",prefix="temp_entity",
dir=tmp_dir)
io.SaveEntity(ent, pdb_path)
entity_saved_flag = 1
#TODO: exception handling (currently errors occuring here
# are handled in the parser LoadDSSP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment