[Matrix-SIG] NumPy installation: follow up

Heather Drury heather@v1.wustl.edu
Thu, 12 Aug 1999 17:14:15 -0500 (CDT)


Hi,

I'm sure I'm not supposed to respond to my own post, but
as a follow up: if I comment out the "cross_correlate"
lines in Numeric.py:

cross_correlate = multiarray.cross_correlate
def convolve(a,v,mode=0):
    if (len(v) > len(a)):
        temp = a
        a = v
        v = temp
        del temp
    return cross_correlate(a,asarray(v)[::-1],mode)

then I can get it to run but I'm still not able to use 
any of the "bitwise" ufuncs (the original reason for the upgrade):

Python 1.5.2b2 (#44, Mar 24 1999, 14:52:32) [C] on irix646
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import Numeric 
>>> print Numeric.__version__
11
>>> print Numeric.less
<ufunc 'less'>
>>> print Numeric.logical_not
<ufunc 'logical_not'>

>>> print Numeric.bitwise_and
Traceback (innermost last):
  File "<stdin>", line 1, in ?
AttributeError: bitwise_and
>>> print Numeric.bitwise_xor
Traceback (innermost last):
  File "<stdin>", line 1, in ?
AttributeError: bitwise_xor

So, what's going on here?

Heather

> I just downloaded the most recent NumPy installation
> (LLNLDistribution11) and from the Numerical
> subdirectory did a "python makethis.py" and then a 
> "python installthis.py" and now I get:
> 
> v1 19# python
> Python 1.5.2b2 (#44, Mar 24 1999, 14:52:32) [C] on irix646
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>import Numeric
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python1.5/site-packages/numeric/Numeric.py", line 45, in ?
>     cross_correlate = multiarray.cross_correlate
> AttributeError: cross_correlate
> 
> I suppose this should be in multiarraymodule.c, but I don't find it.
> 
> Hints?
> 
> Thanks,
> 
> heather 
> 
> 
> -- 
> 
> Heather Drury                               	heather@v1.wustl.edu 
> Washington University School of Medicine    	http://v1.wustl.edu	
> Department of Anatomy & Neurobiology         	Phone: 314-362-4325
> 660 S. Euclid, MS 8108                       	FAX: 314-747-4370
> St. Louis, MO 63110-1093
> 
> _______________________________________________
> Matrix-SIG maillist  -  Matrix-SIG@python.org
> http://www.python.org/mailman/listinfo/matrix-sig
>