mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-06-27 16:36:53 +00:00
Merge remote-tracking branch 'remotes/origin/main'
This commit is contained in:
commit
b0ca93a459
5
test.py
5
test.py
@ -13,6 +13,7 @@ from modules.visualize import *
|
|||||||
from deap import base, creator, tools, algorithms
|
from deap import base, creator, tools, algorithms
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import random
|
import random
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
date = "2024-02-16"
|
date = "2024-02-16"
|
||||||
@ -32,13 +33,13 @@ leistung_haushalt = lf.get_daily_stats(date)[0,...] # Datum anpassen
|
|||||||
pprint(leistung_haushalt.shape)
|
pprint(leistung_haushalt.shape)
|
||||||
|
|
||||||
# PV Forecast
|
# 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)
|
pv_forecast = PVforecast.get_forecast_for_date(date)
|
||||||
temperature_forecast = PVforecast.get_temperature_forecast_for_date(date)
|
temperature_forecast = PVforecast.get_temperature_forecast_for_date(date)
|
||||||
pprint(pv_forecast.shape)
|
pprint(pv_forecast.shape)
|
||||||
|
|
||||||
# Strompreise
|
# 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)
|
price_forecast = HourlyElectricityPriceForecast(filepath)
|
||||||
specific_date_prices = price_forecast.get_prices_for_date(date)
|
specific_date_prices = price_forecast.get_prices_for_date(date)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user