def parse_model_table_file(path, f):
    """Parse a file as a list of model reactions

    Yields reactions IDs. Path can be given as a string or a context.
    """
    for line in f:
        line, _, comment = line.partition('#')
        line = line.strip()
        if line == '':
            continue
        yield line
