Skip to content

Commit

Permalink
remove local file (#120)
Browse files Browse the repository at this point in the history
* remove local file

* only remove file if uploaded to hf
  • Loading branch information
peterdudfield authored Aug 28, 2024
1 parent 0d953e9 commit ecde896
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud_archives/pv/passiv/passiv_monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def get_monthly_passiv_data(start_date: datetime, upload_to_hf: bool = True, ove
repo_type="dataset",
)

# remove local file
logger.info("Removing local file")
os.remove(file)


@dg.asset(
key=["pv", "passiv", "monthly_30min"],
Expand Down

0 comments on commit ecde896

Please sign in to comment.