mailr16479 - /branches/uf_redesign/user_functions/minimisation.py


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

Header


Content

Posted by edward on May 28, 2012 - 14:56:
Author: bugman
Date: Mon May 28 14:56:32 2012
New Revision: 16479

URL: http://svn.gna.org/viewcvs/relax?rev=16479&view=rev
Log:
Fix for the minimise user function in the GUI - the max_iter arg could only 
go up to 1000!

This arg was being set as a SpinCtrl with an upper limit of 1000!  By 
allowing the arg to be None, 
this is now a simple TextCtrl, fixing the problem.


Modified:
    branches/uf_redesign/user_functions/minimisation.py

Modified: branches/uf_redesign/user_functions/minimisation.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/minimisation.py?rev=16479&r1=16478&r2=16479&view=diff
==============================================================================
--- branches/uf_redesign/user_functions/minimisation.py (original)
+++ branches/uf_redesign/user_functions/minimisation.py Mon May 28 14:56:32 
2012
@@ -238,7 +238,8 @@
     default = 10000000,
     py_type = "int",
     desc_short = "maximum number of iterations",
-    desc = "The maximum number of iterations.  The default value is 1e7."
+    desc = "The maximum number of iterations.  The default value is 1e7.",
+    can_be_none = True
 )
 uf.add_keyarg(
     name = "constraints",




Related Messages


Powered by MHonArc, Updated Mon May 28 15:20:01 2012