Skip to content

Commit

Permalink
add .compute() to null filter, line 887, of extrapolate_water_elevati…
Browse files Browse the repository at this point in the history
…on_to_dry_areas() (#144)

Co-authored-by: Soroosh Mani <[email protected]>
  • Loading branch information
FariborzDaneshvar-NOAA and SorooshMani-NOAA authored Aug 13, 2024
1 parent 2cd962e commit a2e545b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ensembleperturbation/parsing/adcirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def extrapolate_water_elevation_to_dry_areas(

# inverse distance weighting of order `idw_order` with `k_nearest` neighbors
for run in range(da.sizes['run']):
null = numpy.isnan(da[run, :])
null = numpy.isnan(da[run, :]).compute()
tree = KDTree(projected_coordinates[~null])
dd, nn = tree.query(projected_coordinates[null], k=k_neighbors)
max_allowable_values = da['depth'][null].values + min_depth - numpy.finfo(float).eps
Expand Down

0 comments on commit a2e545b

Please sign in to comment.