Skip to content

Commit

Permalink
np.in1d is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Jun 6, 2024
1 parent 552539f commit b417bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mikeio/spatial/_FM_geometry_layered.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def elements_to_geometry(
if n_layers > 1:
bottom: Layer = "bottom"
elem_bot = self.get_layer_elements(layers=bottom)
if np.all(np.in1d(sel_elements, elem_bot)):
if np.all(np.isin(sel_elements, elem_bot)):
n_layers = 1

if (
Expand Down

0 comments on commit b417bbe

Please sign in to comment.