mailr11906 - /1.3/specific_fns/model_free/results.py


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

Header


Content

Posted by edward on December 20, 2010 - 14:30:
Author: bugman
Date: Mon Dec 20 14:30:16 2010
New Revision: 11906

URL: http://svn.gna.org/viewcvs/relax?rev=11906&view=rev
Log:
Another fix for bug #17361 (https://gna.org/bugs/index.php?17361) the loading 
1.2.x sim data.

This time the global structures were too large - the lists were being 
appended to for each spin and
simulation, rather than only each simulation.


Modified:
    1.3/specific_fns/model_free/results.py

Modified: 1.3/specific_fns/model_free/results.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/results.py?rev=11906&r1=11905&r2=11906&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/results.py (original)
+++ 1.3/specific_fns/model_free/results.py Mon Dec 20 14:30:16 2010
@@ -488,6 +488,14 @@
 
             # Minimisation details (global minimisation results).
             if model_type == 'diff' or model_type == 'all':
+                # The simulation index.
+                index = int(split(data_set, '_')[1])
+
+                # Already loaded.
+                if len(cdp.chi2_sim) == index + 1:
+                    return
+
+                # Set the values.
                 cdp.chi2_sim.append(eval(spin_line[col['chi2']]))
                 cdp.iter_sim.append(eval(spin_line[col['iter']]))
                 cdp.f_count_sim.append(eval(spin_line[col['f_count']]))




Related Messages


Powered by MHonArc, Updated Mon Dec 20 15:00:01 2010