get_channel_type#

gwpy.io.gwf.get_channel_type(
channel: str | Channel,
gwf: str | Path | IO,
backend: str | None = None,
) Literal['adc', 'sim', 'proc'][source]#

Find the channel type in a given GWF file.

Requires a GWF backend library.

Parameters:
channelstr, Channel

Name of data channel to find.

gwfstr

GWF file to read.

backendstr, optional

The GWF backend to use. Default is ‘any’.

Returns:
ctypestr

the type of the channel (‘adc’, ‘sim’, or ‘proc’)

Raises:
ValueError

if the channel is not found in the table-of-contents