mailr3286 - /1.3/specific_fns/model_free/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:05:
Author: bugman
Date: Tue May  8 23:04:54 2007
New Revision: 3286

URL: http://svn.gna.org/viewcvs/relax?rev=3286&view=rev
Log:
Hand ported r3285 from the 1.2 line, the fix for bug #8953 
(https://gna.org/bugs/?8953).

.....
 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.3/specific_fns/model_free/model_free.py

Modified: 1.3/specific_fns/model_free/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/model_free.py?rev=3286&r1=3285&r2=3286&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/model_free.py (original)
+++ 1.3/specific_fns/model_free/model_free.py Tue May  8 23:04:54 2007
@@ -5145,6 +5145,10 @@
                     ri = []
                     ri_error = []
                     for k in xrange(relax_data_store.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:40:06 2007