Skip to content

Commit

Permalink
use np.sum in pipeflow_setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohmeier authored Nov 7, 2024
1 parent c8b834d commit 53a12b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pandapipes/pf/pipeflow_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def check_infeed_number(node_pit):
if len(node_pit) == 1:
node_pit[slack_nodes, INFEED] = True
infeed_nodes = node_pit[:, INFEED]
if sum(infeed_nodes) != sum(slack_nodes):
if np.sum(infeed_nodes) != np.sum(slack_nodes):
raise PipeflowNotConverged(r'The number of infeeding nodes and slacks do not match')


Expand Down

0 comments on commit 53a12b3

Please sign in to comment.