This message was deleted.
# hamilton-help
s
This message was deleted.
e
Ok, yeah, that’s something we absolutely should have. A
driver.validate
call. Currently we do it internally with two lines (I think this should be complete, but worth a try on your case to double-check).
Copy code
nodes, user_nodes = driver.graph.get_upstream_nodes(final_vars, inputs, overrides)
Driver.validate_inputs(fn_graph, adapter, user_nodes, inputs, nodes)
Feel free to wrap this in a function for now, even though it uses internal APIs. Otherwise, I just opened this and it should be a pretty easy addition: https://github.com/DAGWorks-Inc/hamilton/issues/484.
1
Here’s the two lines int he context of the code: https://github.com/DAGWorks-Inc/hamilton/blob/main/hamilton/driver.py#L484
❤️ 2
💡 1
m
Thank you!
e
@Michael Chmutov I’ve implemented this although I’m not planning to release yet until we batch up next monday with quite a few more changes. If you want to test it out locally you can use this branch: https://github.com/DAGWorks-Inc/hamilton/pull/493. Should be simple:
pip install git+<https://github.com/dagworks-inc/hamilton.git@visualize_execution#egg=sf-hamilton>
(I think — I’m a bit bad at remembering this incantation, but it should just work). If you need it sooner, happy to do a mid-week release!