filepath fix for load_forecast main function (#322)
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled

This commit is contained in:
Normann 2025-01-01 18:44:26 +01:00 committed by GitHub
parent 36916f71b4
commit d695e08bd0

View File

@ -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