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.
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
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.
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