Skip to content

Commit

Permalink
Fix some future warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed Jul 16, 2024
1 parent c820a04 commit 1c610f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workshop/model/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def load_temperature_data():
csv_path = _file_path + "/../2023_Stundenstatistik.txt"

# weather data from https://wetterstation.physik.rwth-aachen.de/datenbank.php
df = pd.read_csv(csv_path, delim_whitespace=True)
df = pd.read_csv(csv_path, sep="\s+")
df.index = (pd.to_datetime(
[
f"{year}-{month}-{day} {hour}:00:00"
Expand Down Expand Up @@ -130,7 +130,7 @@ def sumarise_solph_results(results):
ax2.grid()
ax2.legend()

electricity_consumption = float(results[("electricity grid", "electricity")]["sequences"].sum())
electricity_consumption = float(results[("electricity grid", "electricity")]["sequences"]["flow"].sum())
print(f"Electricity demand: {electricity_consumption:.1f} kWh")
return fig, electricity_consumption

Expand Down

0 comments on commit 1c610f9

Please sign in to comment.