Skip to content

Commit

Permalink
add print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 18, 2023
1 parent fa8959b commit 5689bd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quartz_solar_forecast/eval/pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ def get_pv_metadata(testset: pd.DataFrame):

def get_pv_truth(testset: pd.DataFrame):

print('Loading PV data')

# download from hugginface or load from cache
cache_dir = "data/pv"
metadata_file = f"{cache_dir}/pv.netcdf"
if not os.path.exists(metadata_file):
print('Loading from HF)')
os.makedirs(cache_dir, exist_ok=True)
fs.get("datasets/openclimatefix/uk_pv/pv.netcdf", metadata_file)

Expand All @@ -57,6 +60,7 @@ def get_pv_truth(testset: pd.DataFrame):

combined_data = []
for index, row in testset.iterrows():
print(f'Processing {index} of {len(testset)}')
pv_id = str(row["pv_id"])
base_datetime = pd.to_datetime(row["timestamp"])

Expand Down

0 comments on commit 5689bd3

Please sign in to comment.