mailr8502 - /branches/multi_structure/generic_fns/structure/api_base.py


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

Header


Content

Posted by edward on January 19, 2009 - 10:54:
Author: bugman
Date: Mon Jan 19 10:54:09 2009
New Revision: 8502

URL: http://svn.gna.org/viewcvs/relax?rev=8502&view=rev
Log:
Bug fix for one of the checks in pack_structs().


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

Modified: branches/multi_structure/generic_fns/structure/api_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/api_base.py?rev=8502&r1=8501&r2=8502&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19 
10:54:09 2009
@@ -371,7 +371,7 @@
             current_models.append(self.structural_data[i].num)
 
             # Loop over the structures.
-            for j in range(len(self.structural_data[i])):
+            for j in range(len(self.structural_data[i].mol)):
                 if self.structural_data[i].num in set_model_num and 
self.structural_data[i].mol[j].name in set_mol_name:
                     raise RelaxError, "The molecule '%s' of model %s already 
exists." % (self.structural_data[i].mol[j].name, self.structural_data[i].num)
 




Related Messages


Powered by MHonArc, Updated Mon Jan 19 11:20:02 2009