def parse_omega_channel(fobj, section=None):
params = OrderedDict()<EOL>while True:<EOL><INDENT>line = next(fobj)<EOL>if line == '<STR_LIT>':<EOL><INDENT>break<EOL><DEDENT>key, value = line.split('<STR_LIT::>', <NUM_LIT:1>)<EOL>params[key.strip().rstrip()] = omega_param(value)<EOL><DEDENT>out = Channel(params.get('<STR_LIT>'),<EOL>sample_rate=params.get('<STR_LIT>'),<EOL>frametype=params.get('<STR_LIT>'),<EOL>frequency_range=params.get('<STR_LIT>'))<EOL>out.group = section<EOL>out.params = params<EOL>return out<EOL>
Parse a `Channel` from an Omega-scan configuration file

    Parameters
    ----------
    fobj : `file`
        the open file-like object to parse
    section : `str`
        name of section in which this channel should be recorded

    Returns
    -------
    channel : `Channel`
        the channel as parsed from this `file`