Skip to content

Commit

Permalink
Yielding asset_name from virtual assets ingestion flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgabani8 committed Sep 27, 2024
1 parent 9c01428 commit a4a328b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions weather_mv/loader_pipeline/ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,7 @@ def start_ingestion(self, asset_data: AssetData) -> t.Optional[str]:
logger.info(f"Failed to ingest virtual asset '{asset_name}' in earth engine: {response.text}")
raise ee.EEException(response.text)

response_json = json.loads(response.content)
return response_json.get('name')
return asset_name
else: # as a COG based image.
ee.data.createAsset({
'name': asset_name,
Expand Down

0 comments on commit a4a328b

Please sign in to comment.