RF: use np.isfinite instead of np.isnan and np.isinf separately
RF: use np.isfinite instead of np.isnan and np.isinf separately

StongeEtienne/dipy,demianw/dipy,nilgoyyou/dipy,nilgoyyou/dipy,villalonreina/dipy,villalonreina/dipy,FrancoisRheaultUS/dipy,demianw/dipy,JohnGriffiths/dipy,StongeEtienne/dipy,matthieudumont/dipy,JohnGriffiths/dipy,matthieudumont/dipy,FrancoisRheaultUS/dipy