client returning bogus metadata for full-span gaps
I am requesting minute trend but am returned STREND buffers. I'm only seeing this when the full span is a gap:
servo:~ 0$ ipython3 --no-banner
In [1]: import nds2
In [2]: conn = nds2.connection('nds.ligo.caltech.edu')
In [3]: conn.set_parameter('GAP_HANDLER', 'STATIC_HANDLER_NAN')
Out[3]: True
In [4]: data = conn.fetch(1223778600, 1223778660, ['H1:LSC-SRCL_OUT_DQ.mean,m-trend'])
In [5]: data[0].channel
Out[5]: <H1:LSC-SRCL_OUT_DQ.mean (1Hz, STREND, FLOAT64)>
In [6]: data[0].data
Out[6]:
array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan, nan, nan, nan, nan, nan])
In [7]: nds2.version()
Out[7]: '0.16.1.201809172017'
Edited by Jameson Rollins