Skip to content

Commit

Permalink
only remove file if uploaded to hf
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jul 23, 2024
1 parent afcd02e commit 2c0fbf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloud_archives/pv/passiv/passiv_monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def get_monthly_passiv_data(start_date: datetime, upload_to_hf: bool = True, ove
repo_id="openclimatefix/uk_pv",
repo_type="dataset",
)
# remove local file
logger.info("Removing local file")
os.remove(file)

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


@dg.asset(
Expand Down

0 comments on commit 2c0fbf1

Please sign in to comment.