From: Mark H. <ma...@mi...> - 2006-07-07 19:42:06
|
Robert Kern wrote: > > The latest SVN revisions should match (it's a bug, otherwise). numpy 2761 is > recent enough that an SVN checkout of scipy will probably be fine. > Yes SVN scipy/numpy fix the problem. Sorry, I missed Travis's post on scipy-user here: http://projects.scipy.org/pipermail/scipy-user/2006-June/008438.html to that effect. I should just get specific: I was simply trying to run the basic optimization demo on the front page of the wiki as check on SVN (http://www.scipy.org/Cookbook/OptimizationDemo1) and it appears SVN scipy/numpy breaks matplotlib -0.87.2-1 (fc5) in the demo. Do I need SVN matplotlib as well? Mark From the Opt. Demo: > In [1]: from scipy import arange, special, optimize > In [2]: x = arange(0,10,0.01) > In [4]: for k in arange(0.5,5.5): > ...: y = special.jv(k,x) > ...: plot(x,y) > ...: > --------------------------------------------------------------------------- > exceptions.ZeroDivisionError Traceback (most recent call ... ... > /usr/lib/python2.4/site-packages/matplotlib/ticker.py in > bin_boundaries(self, vmin, vmax) > 766 def bin_boundaries(self, vmin, vmax): > 767 nbins = self._nbins > --> 768 scale, offset = scale_range(vmin, vmax, nbins) > 769 vmin -= offset > 770 vmax -= offset > > /usr/lib/python2.4/site-packages/matplotlib/ticker.py in > scale_range(vmin, vmax, n, threshold) > 731 dv = abs(vmax - vmin) > 732 meanv = 0.5*(vmax+vmin) > --> 733 var = dv/max(abs(vmin), abs(vmax)) > 734 if var < 1e-12: > 735 return 1.0, 0.0 > > ZeroDivisionError: float division |