ecopy icon indicating copy to clipboard operation
ecopy copied to clipboard

Problem in rarefy.py

Open OrsonMM opened this issue 6 years ago • 5 comments

Hi team ecopy

I used the function $ ep.rarefy(data.frame, 'rarefy') and it return me the error:

ecopy/diversity/rarefy.py:137: RuntimeWarning: invalid value encountered in divide rare_calc = np.sum(1 - comb(diff, size)/comb(N, size))

And using ep.rarefy(data.frame, 'rarecurve') return the error:

ecopy/diversity/rarefy.py:147: RuntimeWarning: invalid value encountered in double_scalars sBar = Sn - np.sum(comb(n-x, i))/comb(n, i)

Please what is your recommendation.

OrsonMM avatar Oct 18 '17 20:10 OrsonMM