CDAT/genutil

max_pct_missing not working

Closed this issue · 6 comments

running Test/test_stats_missing.py

Can you give me more details.

did you look at the test?

i think there was case where the max_pct missing was set and we were still getting data back and/or vice-versa

from the test we might have fixed this already

import MV2,numpy,genutil
a=MV2.array([1,2,3,4,5],mask=[0,0,1,0,0])
for m in numpy.arange(0,100.,.25):
       print m, genutil.statistics.std(a,max_pct_missing=m)

seems to give the correct results.

Marking issue as stale, since there has been no activity in 30 days.

Unless the issue is updated or the 'stale' tag is removed, this issue will be closed in 7 days.