Skip to content

Commit

Permalink
Put the add metadata as the processing last step
Browse files Browse the repository at this point in the history
  • Loading branch information
supermarkion committed May 5, 2023
1 parent 6378ccc commit c7f7a7d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dea_burn_cube/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def filter_regions_by_output(task_id, process_cfg_url, overwrite):
for region_index in region_gdf.index:
region_id = region_gdf.region_code[region_index]

_, s3_key_path = task.generate_output_filenames(
_, s3_key_path, _ = task.generate_output_filenames(
output, task_id, region_id, platform
)

Expand Down Expand Up @@ -856,6 +856,14 @@ def burn_cube_run(
bc_task.bucket_name,
)

# then add metadata
burn_cube_add_metadata(
task_id,
region_id,
process_cfg_url,
overwrite,
)


if __name__ == "__main__":
main()

0 comments on commit c7f7a7d

Please sign in to comment.