4 ms·
Can this be set up to yield data from individual functions instead of simply returning it?
by jdonaldson 4y ago
Can this be set up to yield data from individual functions instead of simply returning it?
- elijahbenizzy 4y agoThanks for the question! Clarification -- by "yield" do you mean "return a single function's result" or "use a function that's a generator"? In the former case, yes, it's pretty easy: driver.execute(final_vars=["my_func_1", "my_func_2"]) will just give out the specific ones you want. In the latter case, it's a little trickier but doable -- we were just going over this with a user recently actually! https://github.com/DAGWorks-Inc/hamilton/issues/90 https://github.com/DAGWorks-Inc/hamilton/issues/90