sot/eng_archive — Issue #8: Logical Intervals Error
Author: aarvai
Created: 2011-11-18 13:33:51+00:00
State: open

Since the release of Ska engineering archive 0.13, I've been trying to work with the logical_intervals function, but keep getting the following error (shown below for the website's example):

In [11]: dat = fetch.MSID('aomanend', '2010:001', '2010:005')

In [12]: manvs = dat.logical_intervals('==', 'NEND')
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (22, 0))

---------------------------------------------------------------------------
NameError Traceback (most recent call last)

/home/aarvai/python/ in ()

/proj/sot/ska/arch/i686-linux_CentOS-5/lib/python2.7/site-packages/Ska.engarchive-0.13-py2.7.egg/Ska/engarchive/fetch.pyc in logical_intervals(self, op, val)
439 tstop = times[i_ends]
440 intervals = {'datestart': DateTime(tstarts).date,
--> 441 'datestop': DateTime(tstops).date,
442 'duration': times[i_ends] - times[i_starts],
443 'tstart': tstarts,

NameError: global name 'tstops' is not defined

The state_intervals function works great.