mailr22137 - /trunk/lib/structure/internal/object.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on February 05, 2014 - 17:38:
Author: bugman
Date: Wed Feb  5 17:38:36 2014
New Revision: 22137

URL: http://svn.gna.org/viewcvs/relax?rev=22137&view=rev
Log:
Minor bugfix for the internal structural object add_model() method.

The internal structural object was being called with self as an argument, 
which would default to the
chain_id keyword argument.  The result would be relax state files with 
multiple copies of the
internal structural object embedded in the structural XML section.


Modified:
    trunk/lib/structure/internal/object.py

Modified: trunk/lib/structure/internal/object.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/object.py?rev=22137&r1=22136&r2=22137&view=diff
==============================================================================
--- trunk/lib/structure/internal/object.py (original)
+++ trunk/lib/structure/internal/object.py Wed Feb  5 17:38:36 2014
@@ -1103,7 +1103,7 @@
         # Construct the structural data for the model from the other models.
         for mol_name, res_num, res_name, atom_num, atom_name, element, pos 
in self.atom_loop(model_num=coords_from, mol_name_flag=True, 
res_num_flag=True, res_name_flag=True, atom_num_flag=True, 
atom_name_flag=True, element_flag=True, pos_flag=True):
             # Add the atom.
-            self.add_atom(self, mol_name=mol_name, atom_name=atom_name, 
res_name=res_name, res_num=res_num, pos=pos, element=element, 
atom_num=atom_num)
+            self.add_atom(mol_name=mol_name, atom_name=atom_name, 
res_name=res_name, res_num=res_num, pos=pos, element=element, 
atom_num=atom_num)
 
         # Return the model.
         return self.structural_data[-1]




Related Messages


Powered by MHonArc, Updated Thu Feb 06 12:40:02 2014