diff options
author | Justus Magin <keewis@posteo.de> | 2022-06-29 11:07:13 +0200 |
---|---|---|
committer | Justus Magin <keewis@posteo.de> | 2022-06-29 11:07:13 +0200 |
commit | c9dcea1c80e8beb1826259b459083ccab04cfcd2 (patch) | |
tree | 0b0d502c4f2c2ff47874974d446dc4d8055ab15b /pint | |
parent | 7e023264035b25ec923c77b46aad5fdf1a0bd265 (diff) | |
download | pint-c9dcea1c80e8beb1826259b459083ccab04cfcd2.tar.gz |
actually fix the recursion error
Diffstat (limited to 'pint')
-rw-r--r-- | pint/facets/numpy/numpy_func.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pint/facets/numpy/numpy_func.py b/pint/facets/numpy/numpy_func.py index 7143143..76be164 100644 --- a/pint/facets/numpy/numpy_func.py +++ b/pint/facets/numpy/numpy_func.py @@ -552,6 +552,7 @@ def _interp(x, xp, fp, left=None, right=None, period=None): @implements("where", "function") def _where(condition, *args): + condition = getattr(condition, "magnitude", condition) args, output_wrap = unwrap_and_wrap_consistent_units(*args) return output_wrap(np.where(condition, *args)) |