[SciPy-user] my first compile try fails

eric eric at scipy.org
Mon Nov 19 10:04:33 EST 2001


Hey Rob,

I get the same thing you do.  I'll poke around and see what the issue is.

By the way, this looks suspiciously like a finite difference
electromagnetics code. : )

I'll get back to you.
eric

----- Original Message -----
From: "Rob" <europax at home.com>
To: <scipy-user at scipy.net>
Sent: Sunday, November 18, 2001 5:34 PM
Subject: [SciPy-user] my first compile try fails


> Hi,  I just wanted to try out the compiler and used this one line of
> code as a test:
>
>    cez="dstore[1:nx,1:ny,0]=Dz[1:nx,1:ny,0]"
>    scipy.compiler.compiled_exec(cez,locals())
>
> But it is giving me this error.  Whats wrong?  Note my code runs fine
> with plain old Numpy. Rob.
>
> Traceback (most recent call last):
>   File "/home/rob/newfdtd/xyzblitz.py", line 721, in ?
>     scipy.compiler.compiled_exec(cez,locals())
>   File
> "/usr/local/lib/python2.1/site-packages/scipy/compiler/compile_code.py",
> line 83, in compiled_exec
>     if not size_check.check_expr(expr,local_dict):
>   File
> "/usr/local/lib/python2.1/site-packages/scipy/compiler/size_check.py",
> line 40, in check_expr
>     exec(expr,values)
>   File "<string>", line 1, in ?
>   File
> "/usr/local/lib/python2.1/site-packages/scipy/compiler/size_check.py",
> line 175, in __getitem__
>     if end == sys.maxint or  end is None:
>   File
> "/usr/local/lib/python2.1/site-packages/scipy/compiler/size_check.py",
> line 112, in __cmp__
>     if len(self.shape) == len(other.shape) == 0:
> AttributeError: 'int' object has no attribute 'shape'
>
>
>
>
>
> --
> The Numeric Python EM Project
>
> www.members.home.net/europax
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>





More information about the SciPy-User mailing list