def parse_limits_list(path, limits):
context = FilePathContext(path)<EOL>for limit_def in limits:<EOL><INDENT>if '<STR_LIT>' in limit_def:<EOL><INDENT>include_context = context.resolve(limit_def['<STR_LIT>'])<EOL>for limit in parse_limits_file(include_context):<EOL><INDENT>yield limit<EOL><DEDENT><DEDENT>else:<EOL><INDENT>yield parse_limit(limit_def)<EOL><DEDENT><DEDENT>
Parse a structured list of flux limits as obtained from a YAML file

    Yields tuples of reaction ID, lower and upper flux bounds. Path can be
    given as a string or a context.