Author: bugman Date: Fri Jun 7 15:55:43 2013 New Revision: 19949 URL: http://svn.gna.org/viewcvs/relax?rev=19949&view=rev Log: Added a check to the dispersion specific minimise() function for the spectrometer field strength. This is essential in all dispersion models to convert between ppm and rad/s units, or ppm^2 and (rad/s)^2 for the phi_ex parameter. Modified: branches/relax_disp/specific_analyses/relax_disp/__init__.py Modified: branches/relax_disp/specific_analyses/relax_disp/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/__init__.py?rev=19949&r1=19948&r2=19949&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/__init__.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/__init__.py Fri Jun 7 15:55:43 2013 @@ -1240,6 +1240,10 @@ elif cdp.exp_type == 'r1rho': raise RelaxError("The spin-lock field strengths have not been set up.") + # Test if the spectrometer frequencies have been set. + if cdp.model in [MODEL_LM63, MODEL_CR72, MODEL_M61] and not hasattr(cdp, 'spectrometer_frq'): + raise RelaxError("The spectrometer frequency information has not been specified.") + # Initialise some empty data pipe structures so that the target function set up does not fail. if not hasattr(cdp, 'cpmg_frqs_list'): cdp.cpmg_frqs_list = []