Skip to content

Commit

Permalink
-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EPrade committed Jul 2, 2024
1 parent 7d3a354 commit 1a459af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pandapipes/diagnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ def check_net(net, low_length_limit_km=0.01, check_scaling_factor=1e-5):
f"\t\tThe error message is: {e}")

# check iterations
iter = 200
iterations = 200
try:
pp.pipeflow(net, iter=iter)
pp.pipeflow(net, iter=iterations)
logger.info(f"The pipeflow converges after {net._internal_results['iterations']:d} "
f"iterations.")
except PipeflowNotConverged:
logger.info(f"After {iter:d} iterations the pipeflow did NOT converge.")
logger.info(f"After {iterations:d} iterations the pipeflow did NOT converge.")

# check with little sink and source scaling
logger.info("Testing with scaled-down sinks and sources.")
Expand Down

0 comments on commit 1a459af

Please sign in to comment.