[Tutor] calculation with arrays: shape mismatch
washakie at gmail.com
Mon Oct 29 16:22:29 CET 2007
Does anyone have an idea why I can't do this?
for k in range(nr):
contribution=[contribution+grid[:,:,z:,k,0]/A for z in
And on the interactive line:
But I get the error:
ValueError: shape mismatch: objects cannot be broadcast to a single shape
for the highlighted line.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor