Skip to content

Commit 6cddfc8

Browse files
committed
remove option handle_z="drop" from points_to_cellids()
1 parent bbc5ac3 commit 6cddfc8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

flopy/utils/gridintersect.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,7 @@ def points_to_cellids(
851851
handle_z : str, optional
852852
Method for handling z dimension in intersection results for point
853853
intersections. Default is "ignore" which ignores z-dimension. Other
854-
options are "drop" which only returns results for points within grid
855-
top and bottom, or "return" which returns the computed layer position
854+
options is "return" which returns the computed layer position
856855
for each point. Points above the grid are returned as +np.inf and below
857856
the grid as -np.inf.
858857
return_nodenumbers : bool, optional
@@ -917,10 +916,7 @@ def points_to_cellids(
917916

918917
if handle_z != "ignore":
919918
laypos = self.get_layer_from_z(pts, rec.cellids)
920-
if handle_z == "drop":
921-
mask_z = np.isfinite(laypos)
922-
rec = rec[mask_z]
923-
elif handle_z == "return":
919+
if handle_z == "return":
924920
# copy data to new array to include layer position
925921
rec = nprecfns.append_fields(
926922
rec,

0 commit comments

Comments
 (0)