code: def filter_empty_files(files, ifo=None):
      
      return type(files)([f for f in files if not empty_hdf5_file(f, ifo=ifo)])
docs: Remove empty PyCBC-HDF5 files from a list
  
      Parameters
      ----------
      files : `list`
          A list of file paths to test.
  
      ifo : `str`, optional
          prefix for the interferometer of interest (e.g. ``'L1'``),
          include this for a more robust test of 'emptiness'
  
      Returns
      -------
      nonempty : `list`
          the subset of the input ``files`` that are considered not empty
  
      See also
      --------
      empty_hdf5_file
          for details of the 'emptiness' test