Skip to content
Snippets Groups Projects
Commit 61aa372a authored by BIOPZ-Johner Niklaus's avatar BIOPZ-Johner Niklaus
Browse files

Corrected a bug in SaveToTempdir when saving structures

parent df9e4aa3
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ def SaveToTempDir(objects, seq_format='fasta', structure_format='pdb'):
continue
if isinstance(obj, mol.EntityView) or isinstance(obj, mol.EntityHandle):
name=os.path.join(tmp_dir_name, tmp_dir_name, 'mol%02d.pdb' % (index+1))
io.SaveEntity(model, name, structure_format)
io.SaveEntity(obj, name, structure_format)
file_names.append(name)
continue
return file_names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment