Author: bugman Date: Mon Oct 21 09:17:47 2013 New Revision: 21193 URL: http://svn.gna.org/viewcvs/relax?rev=21193&view=rev Log: Fix for the lib.dispersion.cr72 module for early Python versions. For Python 2.5 and earlier, the math.acosh() function does not exist. Therefore the numpy equivalents are now being used. Modified: branches/relax_disp/lib/dispersion/cr72.py Modified: branches/relax_disp/lib/dispersion/cr72.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/lib/dispersion/cr72.py?rev=21193&r1=21192&r2=21193&view=diff ============================================================================== --- branches/relax_disp/lib/dispersion/cr72.py (original) +++ branches/relax_disp/lib/dispersion/cr72.py Mon Oct 21 09:17:47 2013 @@ -57,7 +57,7 @@ """ # Python module imports. -from math import acosh, cos, cosh, sqrt +from numpy import arccosh, cos, cosh, sqrt def r2eff_CR72(r20a=None, r20b=None, pA=None, dw=None, kex=None, cpmg_frqs=None, back_calc=None, num_points=None): @@ -133,4 +133,4 @@ continue # The full formula. - back_calc[i] = r20_kex - cpmg_frqs[i] * acosh(part) + back_calc[i] = r20_kex - cpmg_frqs[i] * arccosh(part)