ocesou / hooke

Automatically exported from code.google.com/p/hooke
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Deprecation warning on Kubuntu 9.04 #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hooke: genlist *                                                          

/usr/lib/python2.6/dist-packages/scipy/stats/stats.py:1328:
DeprecationWarning: scipy.stats.std is deprecated; please update your code
to use numpy.std.                        
Please note that:                                                         

    - numpy.std axis argument defaults to None, not 0                     

    - numpy.std has a ddof argument to replace bias in a more general
manner.                                                                   

      scipy.stats.std(a, bias=True) can be replaced by numpy.std(x,       

      axis=0, ddof=0), scipy.stats.std(a, bias=False) by numpy.std(x,
axis=0,                                                                   

      ddof=1).                                                            

  ddof=1).""", DeprecationWarning)                                        

/usr/lib/python2.6/dist-packages/scipy/stats/stats.py:1304:
DeprecationWarning: scipy.stats.var is deprecated; please update your code
to use numpy.var.                        
Please note that:                                                         

    - numpy.var axis argument defaults to None, not 0                     

    - numpy.var has a ddof argument to replace bias in a more general
manner.                                                                   

      scipy.stats.var(a, bias=True) can be replaced by numpy.var(x,       

      axis=0, ddof=0), scipy.stats.var(a, bias=False) by var(x, axis=0,   

      ddof=1).                                                            

  ddof=1).""", DeprecationWarning)                                        

/usr/lib/python2.6/dist-packages/scipy/stats/stats.py:420:
DeprecationWarning: scipy.stats.mean is deprecated; please update your code
to use numpy.mean.
Please note that:
    - numpy.mean axis argument defaults to None, not 0
    - numpy.mean has a ddof argument to replace bias in a more general manner.
      scipy.stats.mean(a, bias=True) can be replaced by numpy.mean(x,
axis=0, ddof=1).
  axis=0, ddof=1).""", DeprecationWarning)

The system is Kubuntu 9.04. I think that the error is enough clear. 

Original issue reported on code.google.com by fabrizio...@gmail.com on 26 Aug 2009 at 8:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for letting me notice the warnings! The source code should be updated to 
meet
future versions of scipy and numpy I guess.

Original comment by devicera...@gmail.com on 28 Sep 2009 at 5:22

GoogleCodeExporter commented 8 years ago
I got rid of almost all warnings. One scipy.stats.mean warning is still present
however, but I can't find the offending line -looking "mean" in all the source 
files
now (it seems to me) never shows calls to scipy. It is possible it is in calls 
like
scipy.stats.linregress?

Original comment by devicera...@gmail.com on 8 Oct 2009 at 6:58

GoogleCodeExporter commented 8 years ago

Original comment by devicera...@gmail.com on 31 Oct 2009 at 9:41

GoogleCodeExporter commented 8 years ago
Yes, it is an incomplete transition of scipy.stats.linregress

http://mail.scipy.org/pipermail/scipy-user/2009-May/021259.html

I guess it will get fixed itself when new versions of scipy come downstream, OR 
they
will deprecate the full linregress function and give us an alternative.

Original comment by albertog...@gmail.com on 27 Jan 2010 at 2:55