Skip to content

Commit

Permalink
Update diagnostic.py - remove main call
Browse files Browse the repository at this point in the history
  • Loading branch information
jkisse authored Jan 16, 2025
1 parent 7ca6c5f commit 1ac38cc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/pandapipes/diagnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,3 @@ def pipeflow_alpha_sweep(net, **kwargs):
logger.info(f"Pipeflow did converge with alpha = {alpha}.")
return
logger.warn(f"Pipeflow did not converge with any alpha in {alphas}.")


if __name__ == '__main__':
import pandapipes.networks
net = pandapipes.networks.schutterwald()
net.ext_grid.p_bar = 0.08
net.sink.loc[1505, "mdot_kg_per_s"] = 1000
try:
pandapipes.pipeflow(net)
except Exception as e:
print(f"pipeflow raised: \n {e}")
check_net(net)

0 comments on commit 1ac38cc

Please sign in to comment.