mailr3285 - /1.2/specific_fns/model_free.py


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

Header


Content

Posted by edward on May 08, 2007 - 23:01:
Author: bugman
Date: Tue May  8 23:00:28 2007
New Revision: 3285

URL: http://svn.gna.org/viewcvs/relax?rev=3285&view=rev
Log:
Fix for bug #8953 (https://gna.org/bugs/?8953).

The bug was introduced by a fix to the model-free results writing function.  
In relax versions 1.2.9
and below, no data about a residue was being stored in the results file if it 
was deselected.  This
behaviour undesirable as a spin system could be deselected temporarily and 
later on reselected.  If
this process is deliberately interrupted by using 'results.write()' followed 
by 'results.read()' to
resume, then there will be data loss.

The fix was simple: check for the presence of the 'data.num_ri' data 
structure.


Modified:
    1.2/specific_fns/model_free.py

Modified: 1.2/specific_fns/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.2/specific_fns/model_free.py?rev=3285&r1=3284&r2=3285&view=diff
==============================================================================
--- 1.2/specific_fns/model_free.py (original)
+++ 1.2/specific_fns/model_free.py Tue May  8 23:00:28 2007
@@ -5141,6 +5141,10 @@
                     ri = []
                     ri_error = []
                     for k in xrange(self.relax.data.num_ri[self.run]):
+                        # No relaxation data.
+                        if not hasattr(data, 'num_ri'):
+                            break
+
                         # Find the residue specific data corresponding to k.
                         index = None
                         for l in xrange(data.num_ri):




Related Messages


Powered by MHonArc, Updated Tue May 08 23:20:06 2007