Author: bugman Date: Fri Feb 25 14:29:07 2011 New Revision: 12627 URL: http://svn.gna.org/viewcvs/relax?rev=12627&view=rev Log: Fix for the back_calc_I C function so that it works under Python 2.5. Modified: 1.3/maths_fns/relax_fit.c Modified: 1.3/maths_fns/relax_fit.c URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/relax_fit.c?rev=12627&r1=12626&r2=12627&view=diff ============================================================================== --- 1.3/maths_fns/relax_fit.c (original) +++ 1.3/maths_fns/relax_fit.c Fri Feb 25 14:29:07 2011 @@ -175,12 +175,10 @@ /* Function for returning as a numpy array the back calculated peak intensities */ /* Declarations */ + PyObject *back_calc_py = PyList_New(num_times); extern double back_calc[]; extern int num_times; int i; - - PyObject *back_calc_py = PyList_New(num_times); - assert(PyList_Check(back_calc_py)); /* Copy the values out of the C array into the Python array */ for (i = 0; i < num_times; i++)