def _transfers(reaction, delta, elements, result, epsilon):
left = set(c for c, _ in reaction.left)<EOL>right = set(c for c, _ in reaction.right)<EOL>for c1, c2 in product(left, right):<EOL><INDENT>items = {}<EOL>for e in elements:<EOL><INDENT>v = result.get_value(delta[c1, c2, e])<EOL>nearest_int = round(v)<EOL>if abs(v - nearest_int) < epsilon:<EOL><INDENT>v = int(nearest_int)<EOL><DEDENT>if v >= epsilon:<EOL><INDENT>items[e] = v<EOL><DEDENT><DEDENT>if len(items) > <NUM_LIT:0>:<EOL><INDENT>yield (c1, c2), Formula(items)<EOL><DEDENT><DEDENT>
Yield transfers obtained from result.