Skip to content

Commit

Permalink
Replaced network generation logging warnings by logging errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvl committed Nov 18, 2024
1 parent 4553760 commit 12c1600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydepsi/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def generate_arcs(stm_points, method="delaunay", x="lon", y="lat", max_length=No
"""
if method == "redundant":
if min_links <= 0:
logger.warning(f"min_links must be strictly positive (currently: {min_links})")
logger.error(f"min_links must be strictly positive (currently: {min_links})")
return
if num_partitions <= 0:
logger.warning(f"num_partitions must be strictly positive (currently: {num_partitions})")
logger.error(f"num_partitions must be strictly positive (currently: {num_partitions})")
return

# Collect point coordinates.
Expand Down

0 comments on commit 12c1600

Please sign in to comment.