Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fboundy committed Feb 11, 2024
1 parent ac1f826 commit 5be89f0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/pv_opt/pv_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,10 +1345,14 @@ def optimise(self):
self.static = self.static[self.time_now.floor("30T") :].fillna(0)
# self.load_consumption()
self.soc_now = self.get_config("id_battery_soc")
x = self.hass2df(self.config["id_battery_soc"], days=1, log=self.debug)

if self.debug:
self.log(f">>> soc_now: {self.soc_now}")
self.log(f">>> x: {x}")

x = x.astype(float)

x = self.hass2df(self.config["id_battery_soc"], days=1, log=self.debug).astype(
float
)
x = x.loc[x.loc[: self.static.index[0]].index[-1] :]
x = pd.concat(
[
Expand Down

0 comments on commit 5be89f0

Please sign in to comment.