Skip to content

Commit

Permalink
Debugging 0 load
Browse files Browse the repository at this point in the history
  • Loading branch information
thdfw committed Feb 3, 2025
1 parent 1e56a34 commit 8381302
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flo.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ def __init__(self, config: FloParamsHouse0) -> None:
print([round(x,1) for x in self.load_forecast])
i = 0
while available_buffer > 0:
print(f"Hour {i}: load {self.load_forecast[i]}, available {available_buffer}")
print(f"Hour {i}: load {round(self.load_forecast[i],2)}, available {available_buffer}")
self.load_forecast[i] = self.load_forecast[i] - min(available_buffer, self.load_forecast[i])
print(f"Load becomes {round(self.load_forecast[i],2)}")
available_buffer = available_buffer - min(available_buffer, self.load_forecast[i])
print(f"Available becomes {available_buffer}\n")
i += 1
print(f"Hour {i}: load {self.load_forecast[i]}, available {available_buffer}")
print([round(x,1) for x in self.load_forecast])
Expand Down

0 comments on commit 8381302

Please sign in to comment.