diff options
author | Keewis <keewis@posteo.de> | 2020-06-21 13:54:11 +0200 |
---|---|---|
committer | Keewis <keewis@posteo.de> | 2020-06-21 14:07:50 +0200 |
commit | fe1629cbfc00fbfe8315108ef2caf1d6dac16b3f (patch) | |
tree | 99b136c99cf6402950dccf2b7dab6e940dcefa4a /pint/compat.py | |
parent | 6d9f82a7dfe667ecba9a6d19865fcb08e7a80eb6 (diff) | |
download | pint-fe1629cbfc00fbfe8315108ef2caf1d6dac16b3f.tar.gz |
potentially make this work with duck arrays
Diffstat (limited to 'pint/compat.py')
-rw-r--r-- | pint/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pint/compat.py b/pint/compat.py index a671e19..cbd897d 100644 --- a/pint/compat.py +++ b/pint/compat.py @@ -212,7 +212,7 @@ def eq(lhs, rhs, check_all: bool): bool or array_like of bool """ out = lhs == rhs - if check_all and isinstance(out, ndarray): + if check_all and is_duck_array_type(type(out)): return out.all() return out |