[SciPy-Dev] Two quick fixes for scipy 0.10 and trunk

Ralf Gommers ralf.gommers@googlemail....
Tue Sep 13 16:25:30 CDT 2011


On Mon, Sep 12, 2011 at 7:13 AM, Christoph Gohlke <cgohlke@uci.edu> wrote:

> Hello,
>
> please consider these two trivial changes for scipy 0.10 and master:
>

Those work for me, thanks. I've added them to
https://github.com/scipy/scipy/pull/77

Cheers,
Ralf


>
>
> 1) Initialize variable *d in _logit.c.src:
>
> diff --git a/scipy/special/_logit.c.src b/scipy/special/_logit.c.src
> index 7b830f7..237ca83 100644
> --- a/scipy/special/_logit.c.src
> +++ b/scipy/special/_logit.c.src
> @@ -107,7 +107,7 @@ static PyModuleDef moduledef = {
>     NULL
>  };
>
> -PyObject *
> +PyMODINIT_FUNC
>  PyInit__logit()
>  {
>     PyObject *m, *f, *d;
> @@ -119,6 +119,8 @@ PyInit__logit()
>     import_array();
>     import_umath();
>
> +    d = PyModule_GetDict(m);
> +
>     f = PyUFunc_FromFuncAndData(logit_**funcs,data, types, 3, 1, 1,
>                                 PyUFunc_None, "logit",NULL , 0);
>     PyDict_SetItemString(d, "logit", f);
>
>
>
> 2) Fix syntax error in fblas_l1.pyf.src:
>
> diff --git a/scipy/linalg/fblas_l1.pyf.**src b/scipy/linalg/fblas_l1.pyf.*
> *src
> index 1543a20..664bdd8 100644
> --- a/scipy/linalg/fblas_l1.pyf.**src
> +++ b/scipy/linalg/fblas_l1.pyf.**src
> @@ -347,7 +347,7 @@ function i<prefix>amax(n,x,offx,incx) result(k)
>
>   ! This is to avoid Fortran wrappers.
>   integer i<prefix>amax,k
> -  fortranname F_FUNC(i<prefix>amax,I<S,D,C,**Z>>AMAX)
> +  fortranname F_FUNC(i<prefix>amax,I<S,D,C,**Z>AMAX)
>   intent(c) i<prefix>amax
>   <ftype> dimension(*), intent(in) :: x
>   integer optional, intent(in), check(incx>0||incx<0) :: incx = 1
>
>
> Thanks,
>
> Christoph
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20110913/8bd00421/attachment.html 


More information about the SciPy-Dev mailing list