Hi! The documentation explains that : "`<http://As...
# ask-community
j
Hi! The documentation explains that : "`AssetsDefinition.to_source_assets` to method convert a set of assets to
SourceAsset
objects". But I can't understand how to convert several assets at the same time by calling only once the method
to_source_assets
Copy code
@asset
def asset_1():
    pass

@asset
def asset_2():
    pass

source_1 = asset_1.to_source_assets()
source_2 = asset_2.to_source_assets()
s
in your case, I'd recommend using
to_source_asset()
(no plural).
to_source_assets
is useful in the case that your
AssetsDefinition
is a multi-asset