TimeSeriesDict.read fails to resample 2 channels to 50Hz
Created by: rpfisher
Reproducible as follows:
from glue import datafind
connection = datafind.GWDataFindHTTPConnection()
cache = connection.find_frame_urls('L', 'L1_R', 1118693178, 1118693278, urltype='file')
from gwpy.timeseries import TimeSeriesDict
## This fails:
data = TimeSeriesDict.read(cache, ['L1:OAF-CAL_DARM_DQ','L1:HPI-ETMX_BLND_L4C_X_IN1_DQ'], nproc=2,resample=50)
# Error:
#Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
# File "/mnt/home2/detchar/opt/gwpysoft/lib64/python2.6/site-packages/astropy/io/registry.py", line 326, in read
# data = reader(*args, **kwargs)
# File "/mnt/home2/detchar/opt/gwpysoft/lib64/python2.6/site-packages/gwpy/timeseries/io/cache.py", line 212, in read_dict_cache
# return read_cache(*args, **kwargs)
# File "/mnt/home2/detchar/opt/gwpysoft/lib64/python2.6/site-packages/gwpy/timeseries/io/cache.py", line 195, in read_cache
# out.append(tsd)
# File "/mnt/home2/detchar/opt/gwpysoft/lib64/python2.6/site-packages/gwpy/timeseries/core.py", line 1824, in append
# self[key].append(ts, **kwargs)
# File "/mnt/home2/detchar/opt/gwpysoft/lib64/python2.6/site-packages/gwpy/timeseries/common.py", line 103, in append
# type(self).__name__, self.span, other.span))
#ValueError: Cannot append overlapping TimeSeriess:
# TimeSeries 1 span: [1118693120.0 ... 1118693248.0)
# TimeSeries 2 span: [1118693247.98 ... 1118693312.0)
#
## This works
data = TimeSeriesDict.read(cache, ['L1:OAF-CAL_DARM_DQ','L1:HPI-ETMX_BLND_L4C_X_IN1_DQ'], nproc=2,resample=64)