mailr20467 - /branches/relax_disp/auto_analyses/relax_disp.py


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

Header


Content

Posted by edward on July 23, 2013 - 19:20:
Author: bugman
Date: Tue Jul 23 19:20:08 2013
New Revision: 20467

URL: http://svn.gna.org/viewcvs/relax?rev=20467&view=rev
Log:
Fix for the Monte Carlo simulations for the dispersion auto-analysis failing 
under certain conditions.

The wrong variable was being checked to see if more than two models were 
being optimised.


Modified:
    branches/relax_disp/auto_analyses/relax_disp.py

Modified: branches/relax_disp/auto_analyses/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/auto_analyses/relax_disp.py?rev=20467&r1=20466&r2=20467&view=diff
==============================================================================
--- branches/relax_disp/auto_analyses/relax_disp.py (original)
+++ branches/relax_disp/auto_analyses/relax_disp.py Tue Jul 23 19:20:08 2013
@@ -232,7 +232,7 @@
         self.interpreter.minimise('simplex', func_tol=self.opt_func_tol, 
max_iter=self.opt_max_iterations, constraints=True)
 
         # Monte Carlo simulations.
-        if self.mc_sim_all_models or len(self.model_pipes) < 2:
+        if self.mc_sim_all_models or len(self.models) < 2:
             self.interpreter.monte_carlo.setup(number=self.mc_sim_num)
             self.interpreter.monte_carlo.create_data()
             self.interpreter.monte_carlo.initial_values()
@@ -323,7 +323,7 @@
             self.write_results(path=path, model=model)
 
         # The final model selection data pipe.
-        if len(self.model_pipes) >= 2:
+        if len(self.models) >= 2:
             # Perform model selection.
             self.interpreter.model_selection(method=self.modsel, 
modsel_pipe='final', pipes=self.model_pipes)
 




Related Messages


Powered by MHonArc, Updated Tue Jul 23 19:40:01 2013