wxPython 2.8 demo - FloatCanvas - numpy - more or less solved

jmf wrote:

Hi Christopher,

win2k+sp4, Py25, wxPy, numpy 1.0.1 from sourceforge

The FloatCanvas demo is working very well.

glad to hear it, but I'm a bit confused. I just tried to run the FloatCanvas that comes with 2.8's wx.lib, and it's not set up to use numpy at all -- only Numeric or numarray -- do you have one of those installed as well?

I added the following file to the Python25 home dir,

numpath.pth which contains
C:\Python25\Lib\site-packages\numpy\core
C:\Python25\Lib\site-packages\numpy

There are several ways to work around this issue. One may
adapt the demo or one can consider the numpy package is not
organized in the state of the art. For example, if one wants
to use the fft or linalg part of it, adapting the sys.path
is mandatory.

Something is odd with your install, I can use numpy just fine without messing with sys.path:

Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.0.1'
>>> import numpy.fft
>>> import numpy.linalg

I need to update FloatCanvas a lot anyway, thanks for the prompt.

-Chris

ยทยทยท

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov