python - Scipy special.chdtr error -


i performing iterative process on vector.

i have done many many datasets (which images). , have never encountered error. on totally random image following error after many successful iterations:

wt = 1-stats.chi2.cdf(chisqr,[bands]) file "c:\python27\lib\site-packages\scipy\stats\distributions.py", line 1347, in cdf place(output,cond,self._cdf(*goodargs)) file "c:\python27\lib\site-packages\scipy\stats\distributions.py", line 2540, in _cdf return special.chdtr(df, x) typeerror: ufunc 'chdtr' not supported input types, , inputs  not   safely coerced supported types according casting  rule ''safe'' [finished in 2640.6s exit code 1] 

chdtr(v, x) returns area under left hand tail (from 0 x) of chi square probability density function v degrees of freedom. i'm not sure have encountered this? have clue? because runs smoothly many iterations. have idea on provoke error?


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -