Slackbot
11/30/2023, 2:39 PMMoises Romo
11/30/2023, 3:04 PMSimplePythonGraphAdapter
Michal Siedlaczek
11/30/2023, 3:04 PMElijah Ben Izzy
11/30/2023, 3:49 PMbase.DefaultAdapter
. Itâs a shortcuts for that one :)Michal Siedlaczek
11/30/2023, 4:49 PMElijah Ben Izzy
11/30/2023, 4:50 PMMichal Siedlaczek
11/30/2023, 4:51 PMElijah Ben Izzy
11/30/2023, 4:54 PMMichal Siedlaczek
11/30/2023, 4:57 PMMichal Siedlaczek
11/30/2023, 4:57 PMElijah Ben Izzy
11/30/2023, 4:59 PMMichal Siedlaczek
11/30/2023, 4:59 PMMichal Siedlaczek
11/30/2023, 5:00 PMMichal Siedlaczek
11/30/2023, 5:01 PMMichal Siedlaczek
11/30/2023, 5:01 PMMichal Siedlaczek
11/30/2023, 5:01 PMElijah Ben Izzy
11/30/2023, 5:15 PMStefan Krawczyk
11/30/2023, 8:14 PMBuilder
it defaults to .execute() returning a dictionary by using the âdefault adapterâ.
dr = (
driver.Builder()
.with_config({}) # replace with configuration as appropriate
.with_modules(*MODULES)
.build()
)
Also, independent of how you construct the driver, you could substitute .execute()
with
_, dict_result = dr.materialize(additional_vars=OUTPUTS, inputs=...)
and the second part of the tuple returned is always a dictionary corresponding to the outputs requested to additional_vars
.Elijah Ben Izzy
11/30/2023, 8:31 PM