Oliver
10/25/2022, 1:29 AMAssetsDefinition.from_graph
?jamie
10/25/2022, 2:19 PMNothing
in your graph and then map the asset key to that input in the keys_by_input_name
argument to from_graph
. something like this might work
@asset
def asset_a():
return 1
@graph(
ins={"asset_a": In(Nothing)
)
def my_graph():
# do something
my_graph_asset = AssetsDefinition.from_graph(keys_by_input_name={"asset_a": AssetKey("asset_a")})
@claire does this seem right?claire
10/25/2022, 4:26 PMOliver
10/25/2022, 10:16 PM