Skip to content

Commit

Permalink
Improved parsing of low_soc
Browse files Browse the repository at this point in the history
Forced low_soc to be imported from palm_settings as an integer in case of user error in settings file.
  • Loading branch information
salewis38 authored Sep 24, 2023
1 parent 974e2e1 commit 43bb426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions palm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ def compute_tgt_soc(self, gen_fcast, weight: int, commit: bool) -> str:
# low_soc is the minimum SoC target. Provide more buffer capacity in shoulder months
# when load is likely to be more variable, e.g. heating
if stgs.pg.month in stgs.GE.shoulder:
low_soc = stgs.GE.max_soc_target
low_soc = int(stgs.GE.max_soc_target)
else:
low_soc = stgs.GE.min_soc_target
low_soc = int(stgs.GE.min_soc_target)

max_charge_pc = max_charge_pcnt[0]
min_charge_pc = min_charge_pcnt[0]
Expand Down

0 comments on commit 43bb426

Please sign in to comment.