Author: bugman Date: Wed Mar 27 19:10:24 2013 New Revision: 19271 URL: http://svn.gna.org/viewcvs/relax?rev=19271&view=rev Log: The relaxation dispersion target function class raises a RelaxError when the model is not implemented. Modified: branches/relax_disp/target_functions/relax_disp.py Modified: branches/relax_disp/target_functions/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/target_functions/relax_disp.py?rev=19271&r1=19270&r2=19271&view=diff ============================================================================== --- branches/relax_disp/target_functions/relax_disp.py (original) +++ branches/relax_disp/target_functions/relax_disp.py Wed Mar 27 19:10:24 2013 @@ -25,6 +25,7 @@ # relax module imports. from lib.dispersion.equations import fast_2site +from lib.errors import RelaxError from target_functions.chi2 import chi2 @@ -59,6 +60,8 @@ # Set up the model. if model == 'fast': self.func = self.func_fast_2site + else: + raise RelaxError("The relaxation dispersion model '%s' is not supported yet." % model) def func_fast_2site(self, params):