code: def data_segments(paths, channel, warn=True):
      
      segments = SegmentList()
      for path in paths:
          segments.extend(_gwf_channel_segments(path, channel, warn=warn))
      return segments.coalesce()
docs: Returns the segments containing data for a channel
  
      **Requires:** |LDAStools.frameCPP|_
  
      A frame is considered to contain data if a valid FrData structure
      (of any type) exists for the channel in that frame.  No checks
      are directly made against the underlying FrVect structures.
  
      Parameters
      ----------
      paths : `list` of `str`
          a list of GWF file paths
  
      channel : `str`
          the name to check in each frame
  
      warn : `bool`, optional
          emit a `UserWarning` when a channel is not found in a frame
  
      Returns
      -------
      segments : `~gwpy.segments.SegmentList`
          the list of segments containing data