mailr9017 - /1.3/specific_fns/model_free/main.py


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

Header


Content

Posted by edward on April 28, 2009 - 14:02:
Author: bugman
Date: Tue Apr 28 14:02:02 2009
New Revision: 9017

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

The problem was that global minimisation objects were being accessed when the 
do not exist.  These
are now skipped.


Modified:
    1.3/specific_fns/model_free/main.py

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=9017&r1=9016&r2=9017&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Tue Apr 28 14:02:02 2009
@@ -2971,6 +2971,10 @@
 
         # Loop over the global minimisation stats objects.
         for object_name in min_names:
+            # Skip non-existent objects.
+            if not hasattr(cdp, object_name):
+                continue
+
             # Name for the simulation object.
             sim_object_name = object_name + '_sim'
 




Related Messages


Powered by MHonArc, Updated Tue Apr 28 14:20:02 2009