Author: bugman Date: Fri May 3 20:08:55 2013 New Revision: 19653 URL: http://svn.gna.org/viewcvs/relax?rev=19653&view=rev Log: Added the error flag argument to the value.set user function. This will allow for parameter errors to be set by the user. Modified: trunk/user_functions/value.py Modified: trunk/user_functions/value.py URL: http://svn.gna.org/viewcvs/relax/trunk/user_functions/value.py?rev=19653&r1=19652&r2=19653&view=diff ============================================================================== --- trunk/user_functions/value.py (original) +++ trunk/user_functions/value.py Fri May 3 20:08:55 2013 @@ -330,6 +330,13 @@ desc_short = "spin ID to restrict value setting to", desc = "The spin ID string to restrict value setting to.", can_be_none = True +) +uf.add_keyarg( + name = "error", + default = False, + py_type = "bool", + desc_short = "error flag", + desc = "A flag which if True will cause the error rather than parameter to be set." ) # Description. uf.desc.append(Desc_container())