def _gwf_channel(path, series_class=TimeSeries, verbose=False):
channels = list(io_gwf.iter_channel_names(file_path(path)))<EOL>if issubclass(series_class, StateVector):<EOL><INDENT>regex = DQMASK_CHANNEL_REGEX<EOL><DEDENT>else:<EOL><INDENT>regex = STRAIN_CHANNEL_REGEX<EOL><DEDENT>found, = list(filter(regex.match, channels))<EOL>if verbose:<EOL><INDENT>print("<STR_LIT>".format(found))<EOL><DEDENT>return found<EOL>
Find the right channel name for a LOSC GWF file