mailr4415 - /1.3/prompt/minimisation.py


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

Header


Content

Posted by edward on January 07, 2008 - 13:51:
Author: bugman
Date: Mon Jan  7 13:32:55 2008
New Revision: 4415

URL: http://svn.gna.org/viewcvs/relax?rev=4415&view=rev
Log:
Bug fix for the minimise() user function.

The maximum number of iterations should be an integer.  A float should not be 
accepted!


Modified:
    1.3/prompt/minimisation.py

Modified: 1.3/prompt/minimisation.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/minimisation.py?rev=4415&r1=4414&r2=4415&view=diff
==============================================================================
--- 1.3/prompt/minimisation.py (original)
+++ 1.3/prompt/minimisation.py Mon Jan  7 13:32:55 2008
@@ -320,8 +320,8 @@
             raise RelaxNoneNumError, ('gradient tolerance', grad_tol)
 
         # The maximum number of iterations.
-        if type(max_iterations) != int and type(max_iterations) != float:
-            raise RelaxNumError, ('maximum number of iterations', 
max_iterations)
+        if type(max_iterations) != int:
+            raise RelaxIntError, ('maximum number of iterations', 
max_iterations)
 
         # Constraint flag.
         if type(constraints) != int or (constraints != 0 and constraints != 
1):




Related Messages


Powered by MHonArc, Updated Mon Jan 07 14:00:19 2008