From afcd02e14d4f2a938441e59b7be4973c5ba45f81 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 23 Jul 2024 20:40:58 +0100 Subject: [PATCH] remove local file --- cloud_archives/pv/passiv/passiv_monthly.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloud_archives/pv/passiv/passiv_monthly.py b/cloud_archives/pv/passiv/passiv_monthly.py index 49e0309..d4b0137 100644 --- a/cloud_archives/pv/passiv/passiv_monthly.py +++ b/cloud_archives/pv/passiv/passiv_monthly.py @@ -75,6 +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) @dg.asset(