Skip to content
Snippets Groups Projects
Commit 46530794 authored by Marco Biasini's avatar Marco Biasini
Browse files

remove temporary directory when tmtools are failing

parent c61cb42c
Branches
Tags
No related merge requests found
......@@ -83,6 +83,7 @@ def _RunTmAlign(tmalign, tmp_dir):
ps.wait()
lines=ps.stdout.readlines()
if (len(lines))<22:
_CleanupFiles(tmp_dir)
raise RuntimeError("tmalign superposition failed")
return _ParseTmAlign(lines)
......@@ -127,6 +128,7 @@ def _RunMmAlign(mmalign, tmp_dir):
ps.wait()
lines=ps.stdout.readlines()
if (len(lines))<22:
_CleanupFiles(tmp_dir)
raise RuntimeError("mmalign superposition failed")
return _ParseMmAlign(lines)
......@@ -173,6 +175,7 @@ def _RunTmScore(tmscore, tmp_dir):
ps.wait()
lines=ps.stdout.readlines()
if (len(lines))<22:
_CleanupFiles(tmp_dir)
raise RuntimeError("tmscore superposition failed")
return _ParseTmScore(lines)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment