diff options
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/arraysetops.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 339f4e60c..8ced2f6d9 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -672,6 +672,13 @@ def in1d(ar1, ar2, assume_unique=False, invert=False, kind=None): ar2_min] return outgoing_array + elif kind == 'dictionary': # not range_safe_from_overflow + raise RuntimeError( + "You have specified kind='dictionary', " + "but the range of values in `ar2` exceeds the " + "maximum integer of the datatype. " + "Please set `kind` to None or 'mergesort'." + ) elif kind == 'dictionary': raise ValueError( "The 'dictionary' method is only " |