mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
filepath fix for load_forecast main function (#322)
This commit is contained in:
parent
36916f71b4
commit
d695e08bd0
@ -92,7 +92,7 @@ class LoadForecast:
|
|||||||
|
|
||||||
# Example usage of the class
|
# Example usage of the class
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
filepath = r"..\data\load_profiles.npz" # Adjust the path to the .npz file
|
filepath = Path(__file__).parent.parent / "data" / "load_profiles.npz"
|
||||||
lf = LoadForecast(filepath=filepath, year_energy=2000)
|
lf = LoadForecast(filepath=filepath, year_energy=2000)
|
||||||
specific_date_prices = lf.get_daily_stats("2024-02-16") # Adjust date as needed
|
specific_date_prices = lf.get_daily_stats("2024-02-16") # Adjust date as needed
|
||||||
specific_hour_stats = lf.get_hourly_stats("2024-02-16", 12) # Adjust date and hour as needed
|
specific_hour_stats = lf.get_hourly_stats("2024-02-16", 12) # Adjust date and hour as needed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user