diff --git a/modules/bindings/pymod/utils.py b/modules/bindings/pymod/utils.py index 27d4008d8a543df42e21aa2c704516462fa4196c..02edd598f9b664c165f385b92429b619d7bf09fd 100644 --- a/modules/bindings/pymod/utils.py +++ b/modules/bindings/pymod/utils.py @@ -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