Skip to content

Commit

Permalink
adding csv format to persist datacube
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jun 20, 2024
1 parent 5b346c5 commit 3e924b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions executor/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def persist_datacube(
case "jpeg":
full_path = os.path.join(base_path, f"{path}.jpg")
kube.to_image(full_path, **format_args)
case "csv":
full_path = os.path.join(base_path, f"{path}.csv")
kube.to_csv(full_path)
case _:
raise ValueError(f"format `{format}` is not supported")
return full_path
Expand Down

0 comments on commit 3e924b5

Please sign in to comment.