https://dagster.io/ logo
#ask-community
Title
# ask-community
j

Jordan

04/07/2023, 8:54 PM
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

sandy

04/07/2023, 10:00 PM
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