num_channels#

gwpy.io.gwf.num_channels(
gwf: str | Path | IO,
type: str | None = None,
backend: str | None = None,
) int[source]#

Find the total number of channels in this GWF file.

Requires a GWF backend library.

Parameters:
gwfstr

GWF file to read.

typestr

The Fr structure type to match (one of ‘adc’, ‘sim’, or ‘proc’). Default is to match all types.

backendstr, optional

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

Returns:
nint

The total number of channels found in the table of contents.