Re: OverflowError: math range error...

2006-06-23 Thread Sheldon
Thanks for the tips! I am going to look into this some more. I am not used to using Numeric and the logical functions. I didn't think about what you pointed out and somewhere the returned values from these logical methods are not what I expect. I will rewrite the whole thing using alltrue instead.

Re: OverflowError: math range error...

2006-06-23 Thread Sheldon
Thanks for the tips! I am going to look into this some more. /Sheldon Simon Forman skrev: > Sheldon wrote: > > Hi, > > > > I have a written a script that will check to see if the divisor is zero > > before executing but python will not allow this: > > > > if statistic_array[0:4] > 0.0: > > stat

Re: OverflowError: math range error...

2006-06-22 Thread Robert Kern
Sheldon wrote: > Hi, > > I have a written a script that will check to see if the divisor is zero > before executing but python will not allow this: > > if statistic_array[0:4] > 0.0: > statistic_array[0,0:4] = > int(multiply(divide(statistic_array[0,0:4],statistic_array \ > [0,4]),1.0))/100.

Re: OverflowError: math range error...

2006-06-22 Thread Simon Forman
Sheldon wrote: > Hi, > > I have a written a script that will check to see if the divisor is zero > before executing but python will not allow this: > > if statistic_array[0:4] > 0.0: > statistic_array[0,0:4] = > int(multiply(divide(statistic_array[0,0:4],statistic_array \ > [0,4]),1.0))/100.0