From: Sturla M. <stu...@me...> - 2006-03-10 00:32:40
|
Here is what happens: >>> import numpy >>> numpy.__version__ '0.9.5' >>> numpy.ndarray([1])/0.0 array([ 1.#INF0000e+000]) Well, it is numpy 0.9.5, but the problem could be numpy 0.9.5 on Windows. Thanks. Sturla Molden >>>>>> "Sturla" == Sturla Molden <stu...@me...> writes: > Sturla> > "C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py", > Sturla> line 25, in ? inf = infty = infinity = Infinity = > Sturla> (array([1])/0.0)[0] TypeError: unsupported operand type(s) > Sturla> for /: 'numpy.ndarray' and 'float' > >>>> > > Are you sure about your numpy version? I am not seeing this on linux > > In [1]: import numpy > > In [4]: numpy.__version__ > Out[4]: '0.9.5' > > In [3]: numpy.ndarray([1])/0.0 > Out[3]: array([ -inf]) > > Could you run these commands on your system? > > JDH > |