Author: bugman
Date: Mon Jan 19 14:34:00 2009
New Revision: 8529

URL: http://svn.gna.org/viewcvs/relax?rev=8529&view=rev
Log:
Fix for the load_pdb() method.

The 'other' molecule types are now added to a standard list in 
MolContainer.data.


Modified:
    branches/multi_structure/generic_fns/structure/scientific.py

Modified: branches/multi_structure/generic_fns/structure/scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/scientific.py?rev=8529&r1=8528&r2=8529&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/scientific.py (original)
+++ branches/multi_structure/generic_fns/structure/scientific.py Mon Jan 19 
14:34:00 2009
@@ -591,8 +591,9 @@
                     mol_conts[-1][-1].mol_type = 'other'
 
                     # Loop over the molecules.
+                    mol_conts[-1][-1].data = []
                     for mol in model.molecules[key]:
-                        mol_conts[-1][-1].append(mol)
+                        mol_conts[-1][-1].data.append(mol)
 
                     # Update structures.
                     self.target_mol_name(set=set_mol_name, 
target=new_mol_name, index=mol_index, mol_num=mol_index+1, file=file)


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to