I have two numpy arrays and I am trying to divide one with the other and at the same time, I want to make sure that the entries where the divisor is 0, should just be replaced w
You may have a NAN, INF, or NINF floating around somewhere. Try this:
NAN
INF
NINF
np.isfinite(diff_images).all() np.isfinite(b_0).all()
If one or both of those returns False, that's likely the cause of the runtime error.
False