Skip to content

Commit

Permalink
Debug output fixes (#676)
Browse files Browse the repository at this point in the history
* Debug output fixes

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
springfall2008 and pre-commit-ci-lite[bot] authored Jan 30, 2024
1 parent d288983 commit 52885cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8253,7 +8253,7 @@ def optimise_all_windows(self, load_minutes_step, load_minutes_step10, pv_foreca
self.best_soc_max,
self.dp2(best_metric),
self.dp2(best_cost),
self.charge_limit_best,
self.calc_percent_limit(self.charge_limit_best),
)
)
else:
Expand Down Expand Up @@ -8333,7 +8333,7 @@ def optimise_all_windows(self, load_minutes_step, load_minutes_step10, pv_foreca
self.dp2(best_cost),
self.dp2(best_keep),
self.time_abs_str(self.end_record + self.minutes_now),
self.window_as_text(self.charge_window_best, self.charge_limit_best, ignore_min=True),
self.window_as_text(self.charge_window_best, self.calc_percent_limit(self.charge_limit_best), ignore_min=True),
)
)

Expand Down Expand Up @@ -8964,7 +8964,7 @@ def calculate_plan(self, recompute=True):

self.end_record = self.forecast_minutes
# Show best windows
self.log("Best charge window {}".format(self.window_as_text(self.charge_window_best, self.charge_limit_best)))
self.log("Best charge window {}".format(self.window_as_text(self.charge_window_best, self.charge_limit_percent_best)))
self.log("Best discharge window {}".format(self.window_as_text(self.discharge_window_best, self.discharge_limits_best)))

# Created optimised step data
Expand Down Expand Up @@ -10110,7 +10110,7 @@ def fetch_inverter_data(self):
self.charge_limit_percent = self.calc_percent_limit(self.charge_limit)
self.publish_charge_limit(self.charge_limit, self.charge_window, self.charge_limit_percent, best=False)

self.log("Base charge window {}".format(self.window_as_text(self.charge_window, self.charge_limit)))
self.log("Base charge window {}".format(self.window_as_text(self.charge_window, self.charge_limit_percent)))
self.log("Base discharge window {}".format(self.window_as_text(self.discharge_window, self.discharge_limits)))

def manual_select(self, config_item, value):
Expand Down

0 comments on commit 52885cf

Please sign in to comment.