Skip to content

Add new scan feature for TimeSeries.find

Duncan Macleod requested to merge github/fork/duncanmmacleod/timeseries-scan into main

This PR adds a new scan keyword argument to TimeSeries.find that allows for manually scanning a directory hierarchy instead of calling out to gwdatafind, e.g (from LIGO computing centres):

from gwpy.time import to_gps
from gwpy.timeseries import TimeSeries
print(TimeSeries.get(
    "L1:GDS-CALIB_STRAIN",
    to_gps("now") - 100,
    to_gps("now") - 90,
    frametype="L1_llhoft",
    verbose=True,
    scan="/dev/shm/kafka",
))

Closes #1638.

Merge request reports