code: def get_channel_type(channel, framefile):
      
      channel = str(channel)
      for name, type_ in _iter_channels(framefile):
          if channel == name:
              return type_
      raise ValueError("%s not found in table-of-contents for %s"
                       % (channel, framefile))
docs: Find the channel type in a given GWF file
  
      **Requires:** |LDAStools.frameCPP|_
  
      Parameters
      ----------
      channel : `str`, `~gwpy.detector.Channel`
          name of data channel to find
  
      framefile : `str`
          path of GWF file in which to search
  
      Returns
      -------
      ctype : `str`
          the type of the channel ('adc', 'sim', or 'proc')
  
      Raises
      ------
      ValueError
          if the channel is not found in the table-of-contents