[SciPy-user] NumpyTest warning after upgrade

Gary Pajer gary.pajer at gmail.com
Sun Sep 28 18:01:34 EDT 2008


On Sun, Sep 28, 2008 at 3:36 PM, Alan McIntyre <alan.mcintyre at gmail.com>wrote:

> On Sun, Sep 28, 2008 at 12:05 PM, Gary Pajer <gary.pajer at gmail.com> wrote:
> > I've upgraded numpy and scipy after quite some time.  I think I had numpy
> > 1.0.4 and scipy 5.2, but I'm not 100% sure.
> > I'm on winxp, python 2.5.1, and I installed using the windows exe
> installers
> > on scipy.org
> >
> > I've poked around the scipy-users and numpy-users lists, and learned what
> I
> > already know:  NumpyTest is deprecated.  How can I fix this?
> >
> > regards,
> > Gary
>
> Hi Gary,
>
> Some changes were made to the testing framework in NumPy 1.2, but
> SciPy 0.6 doesn't include the changes needed to work with NumPy 1.2
> without raising some deprecation warnings (I think this my
> understanding of the versions here is correct, somebody please correct
> me if I'm wrong).   As far as I know, SciPy 0.6 should still work, but
> it will just complain a bit. :)  I'm not sure what the timeline is for
> releasing the next SciPy.
>
> In the meantime, if you just want to patch up your local install, you
> should be able to change code that looks like this in
> scipy/misc/__init__.py (and probably several other places):
>
> from numpy.testing import NumpyTest
> test = NumpyTest().test
>
> to this:
>
> from numpy.testing import Tester
> test = Tester().test
>
> I suppose you could switch to NumPy 1.1 or try using the SciPy from
> svn if you'd like to avoid making local tweaks.
>
> Hope this helps,
> Alan


OK ... now I see that numpy is new, and scipy hasn't caught up.  I know this
happens from time to time. I haven't been paying attention.

Thanks.


>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080928/d3e9d555/attachment.html>


More information about the SciPy-User mailing list