Author: bugman Date: Mon Jan 7 12:03:33 2008 New Revision: 4408 URL: http://svn.gna.org/viewcvs/relax?rev=4408&view=rev Log: Bug fix for the minimise() user function.
All arguments are now checked if they are strings. 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=4408&r1=4407&r2=4408&view=diff ============================================================================== --- 1.3/prompt/minimisation.py (original) +++ 1.3/prompt/minimisation.py Mon Jan 7 12:03:33 2008 @@ -293,8 +293,9 @@ # Minimisation algorithm. if len(args) == 0: raise RelaxNoneError, 'minimisation algorithm' - elif type(args[0]) != str: - raise RelaxStrError, ('minimisation algorithm', args[0]) + for i in xrange(len(args)): + if type(args[i]) != str: + raise RelaxStrError, ('minimisation algorithm', args[0]) min_algor = args[0] # Minimisation options. _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits