Skip to content

Improved read_cache and write_cache functions

This PR improves the read_cache and write_cache functions from gwpy.io.cache to support the following:

  • read a plaintxt file of paths (in LIGO-T050017 format)
  • a new format keyword argument to write_cache to specify the format

To support this, a new filename_metadata function was added. This is essentially the same as that in gwdatafind.utils, but handles floats in the filename.

Merge request reports