sot/eng_archive — Issue #18: Msidset not compatible with Stats
Author: aarvai
Created: 2012-01-12 20:04:32+00:00
State: open

Fetch.Msidset (with filter_bad = 'True') is not compatible with stat = 'daily' or stat = '5min'. (See error below.) Perhaps this is intentional? If not, I'd like to suggest an enhancement where the stats are available provided that there is valid data for each parameter within the statistical timeframe.

Note that it is possible to do:
fetch.MSIDset (for multiple parameters with filter_bad = 'False')
OR
fetch.Msid (for a single parameter with filter_bad = 'True').

In [202]: x=fetch.Msidset(['aosares1','aosares2'],'2000:001:00:00:00.000','2000:365:00:00:00.000',stat='daily')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/aarvai/ in ()
----> 1 x=fetch.Msidset(['aosares1','aosares2'],'2000:001:00:00:00.000','2000:365:00:00:00.000',stat='daily')

/proj/sot/ska/dev/arch/x86_64-linux_CentOS-5/lib/python2.7/site-packages/Ska.engarchive-0.15-py2.7.egg/Ska/engarchive/fetch.pyc in __init__(self, msids, start, stop, filter_bad, stat)
642 def __init__(self, msids, start, stop=None, filter_bad=True, stat=None):
643 super(Msidset, self).__init__(msids, start, stop=stop,
--> 644 filter_bad=filter_bad, stat=stat)
645
646

/proj/sot/ska/dev/arch/x86_64-linux_CentOS-5/lib/python2.7/site-packages/Ska.engarchive-0.15-py2.7.egg/Ska/engarchive/fetch.pyc in __init__(self, msids, start, stop, filter_bad, stat)
526
527 if filter_bad:
--> 528 self.filter_bad()
529
530 def filter_bad(self):

/proj/sot/ska/dev/arch/x86_64-linux_CentOS-5/lib/python2.7/site-packages/Ska.engarchive-0.15-py2.7.egg/Ska/engarchive/fetch.pyc in filter_bad(self)
561 for msid in msids:
562 if bads is None:
--> 563 bads = msid.bads.copy()
564 else:
565 bads |= msid.bads

AttributeError: 'NoneType' object has no attribute 'copy'

@taldcroft @jeanconn