On Mon, 6 Mar 2006, William Baxter wrote:
>Does gnuplot-py-1.7 only work with Numeric? Are there plans to make it
>compatible with numarray?
>
I use numarray - I just replaced all
import Numeric => import numarray as Numeric
in the source and it works for me.
I think both Numeric and numarray will be replaced in near future with
numpy, so I would rather have numpy support...
Of course, something like
try:
import numpy as NumericPackage
except ImportError:
try:
import numarray as NumericPackage
except ImportError:
try:
import Numeric as NumericPackage
except ImportError:
raise UnholyError, 'numpy, numarray, or Numeric not found.'
would be the best option.
--
Juho Schultz
e-mail: juh...@as...
phone: +358-50-4081854
web: www.astro.helsinki.fi/~jschultz
Observatory
FIN-00014 University of Helsinki
FINLAND
|