[SciPy-user] my first compile try fails
Rob
europax at home.com
Sun Nov 18 17:34:32 EST 2001
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
More information about the SciPy-User
mailing list