Skip to content

Commit

Permalink
log plunge
Browse files Browse the repository at this point in the history
  • Loading branch information
fboundy committed Mar 27, 2024
1 parent 82131d4 commit f3e4440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/pv_opt/pvpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@ def optimised_force(self, initial_soc, static_flows, contract: Contract, **kwarg
axis=1,
)
plunge_cost = round(contract.net_cost(df).sum(), 1)
self.log(f"Plunge cost: {plunge_cost}")
if log:
self.log(f"Plunge cost: {plunge_cost}")
base_cost = plunge_cost

# --------------------------------------------------------------------------------------------
Expand Down

0 comments on commit f3e4440

Please sign in to comment.