Skip to content

Commit

Permalink
- Fix small bug ** into * in discharge.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Leynse committed Sep 7, 2023
1 parent 15b8fde commit c1bbdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydromt_sfincs/workflows/discharge.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def snap_discharge(
)
# calculate distance to center cell (measured in cells)
ar_wdw = np.abs(np.arange(-wdw, wdw + 1))
dist = np.hypot(**np.meshgrid(ar_wdw, ar_wdw)).ravel()
dist = np.hypot(*np.meshgrid(ar_wdw, ar_wdw)).ravel()
ds_wdw["dist"] = xr.Variable(
("index", "wdw"), np.tile(dist, (ds_wdw["index"].size, 1))
)
Expand Down

0 comments on commit c1bbdf9

Please sign in to comment.