diff --git a/test.py b/test.py index 2b7c111..9123123 100644 --- a/test.py +++ b/test.py @@ -12,6 +12,7 @@ from modules.visualize import * from deap import base, creator, tools, algorithms import numpy as np import random +import os date = "2024-02-16" @@ -38,12 +39,12 @@ specific_date_load = lf.get_daily_stats(date)[0,...] # Datum anpassen pprint(specific_date_load.shape) # PV Forecast -PVforecast = PVForecast(r'.\test_data\pvprognose.json') +PVforecast = PVForecast(os.path.join(r'test_data', r'pvprognose.json')) pv_forecast = PVforecast.get_forecast_for_date(date) pprint(pv_forecast.shape) # Strompreise -filepath = r'.\test_data\strompreis.json' # Pfad zur JSON-Datei anpassen +filepath = os.path.join (r'test_data', r'strompreis.json') # Pfad zur JSON-Datei anpassen price_forecast = HourlyElectricityPriceForecast(filepath) specific_date_prices = price_forecast.get_prices_for_date(date)