Numeric help!

Sheldon shejo284 at gmail.com
Mon Jul 3 05:36:59 EDT 2006


Carl Banks wrote:
> Sheldon wrote:
> > average(compress(ravel(equal(wk,z)),ravel(sattmp)),axis=None)
> > This is much more compact and elegant. Thanks for pointing this out.
> > I don't know why average() returned a divide by zero error and to avoid
> > this I inserted this if statement.   Now it works much better !
>
> Probably you had a case where the array length was zero, but it
> wouldn't happen in the present case unless your input arrays are zero
> by zero.
> 
> 
> Carl Banks

Thanks for you help kind Sir!

/Sheldon




More information about the Python-list mailing list