Skip to content

Commit

Permalink
chore: simplify power sum
Browse files Browse the repository at this point in the history
ECALC-881
  • Loading branch information
frodehk committed Mar 15, 2024
1 parent ad3ae01 commit eb32579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libecalc/application/graph_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def _evaluate_installations(self, variables_map: dto.VariablesMap) -> List[libec
regularity=regularity,
)

power = power_electrical.__add__(power_mechanical)
power = power_electrical + power_mechanical

energy_usage = (
reduce(
operator.add,
Expand Down

0 comments on commit eb32579

Please sign in to comment.