On Wed, Nov 20, 2013 at 9:09 AM, Daπid wrote:
> I have the following code, operating on some arrays.
>
> pen = 1 - (real_sum[int(i1 + t)]) / (absolute[int(i1 + t)])
> if np.isnan(pen):
> pen = 0.0
>
> I know that, sometimes, real_sum and absolute are 0 at the designated
> point, s
I have the following code, operating on some arrays.
pen = 1 - (real_sum[int(i1 + t)]) / (absolute[int(i1 + t)])
if np.isnan(pen):
pen = 0.0
I know that, sometimes, real_sum and absolute are 0 at the designated
point, so I should get a RuntimeWarning. But, the warning is puzzling: