Skip to content

Commit

Permalink
Conversion of an array with ndim > 0 to a scalar is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
guydup committed Oct 22, 2024
1 parent b1e4df8 commit 9308d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrolib/dhydamo/core/hydamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ def add_boundary_condition(
)
get_nearest = KDTree(nodes1d[:, 0:2])
_, idx_nearest = get_nearest.query(pt.coords[:])
nodeid = f"{float(nodes1d[idx_nearest,0]):12.6f}_{float(nodes1d[idx_nearest,1]):12.6f}"
nodeid = f"{float(nodes1d[idx_nearest[0],0]):12.6f}_{float(nodes1d[idx_nearest[0],1]):12.6f}"

# Convert time to minutes
if isinstance(series, pd.Series):
Expand Down

0 comments on commit 9308d9e

Please sign in to comment.