mailr2670 - /1.3/generic_fns/pdb.py


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

Header


Content

Posted by edward on October 26, 2006 - 10:18:
Author: bugman
Date: Thu Oct 26 10:17:45 2006
New Revision: 2670

URL: http://svn.gna.org/viewcvs/relax?rev=2670&view=rev
Log:
Fixed the overwriting of the residue specific xh_vect data structure.

If the user function 'pdb.vectors()' was called twice, the vectors calculated 
from the first
function call were being overwriten by the empty structure '[]'.  This is now 
fixed.


Modified:
    1.3/generic_fns/pdb.py

Modified: 1.3/generic_fns/pdb.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pdb.py?rev=2670&r1=2669&r2=2670&view=diff
==============================================================================
--- 1.3/generic_fns/pdb.py (original)
+++ 1.3/generic_fns/pdb.py Thu Oct 26 10:17:45 2006
@@ -237,7 +237,8 @@
 
         # Create a temporary vector list for each residue.
         for i in xrange(len(self.relax.data.res[self.run])):
-            self.relax.data.res[self.run][i].xh_vect = []
+            if not hasattr(self.relax.data.res[self.run][i], 'xh_vect'):
+                self.relax.data.res[self.run][i].xh_vect = []
 
         # Loop over the structures.
         for i in xrange(num_str):




Related Messages


Powered by MHonArc, Updated Thu Oct 26 11:20:04 2006