TimeSeries.read falls over when reading 'all' data from a cache file
It turns out TimeSeries.read
can't handle being given a cache file and not being told the time boundaries over which to read:
$ cat H-H1_GWOSC_4KHZ_R1-1268903496-32.lcf
H H1_GWOSC_4KHZ_R1 1268903496 32 file://localhost/home/duncan/tmp/H-H1_GWOSC_4KHZ_R1-1268903496-32.gwf
from gwpy.timeseries import TimeSeries
print(TimeSeries.read("H-H1_GWOSC_4KHZ_R1-1268903496-32.lcf", "H1:GWOSC-4KHZ_R1_STRAIN"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/duncan/opt/mambaforge/envs/py311/lib/python3.11/site-packages/gwpy/timeseries/core.py", line 310, in read
return timeseries_reader(cls, source, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/duncan/opt/mambaforge/envs/py311/lib/python3.11/site-packages/gwpy/timeseries/io/core.py", line 35, in read
source = preformat_cache(source, *args[1:],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/duncan/opt/mambaforge/envs/py311/lib/python3.11/site-packages/gwpy/timeseries/io/cache.py", line 55, in preformat_cache
segment=Segment(start, end))
^^^^^^^^^^^^^^^^^^^
TypeError: '<=' not supported between instances of 'NoneType' and 'NoneType'