Use correct numpy function to detect infinity
In the ssr code, we incorrectly use np.isnan
to try and detect whether the ssr threshold is infinity (which signifies that there is no value larger than 0.). The correct function to use here is np.isfinite
.