From 1d1259e9861c367e618ce79ab015f596909a7a35 Mon Sep 17 00:00:00 2001 From: Jon Thielen Date: Thu, 9 Jul 2020 14:24:58 -0500 Subject: [PATCH] Fix _check_argument_units for pint __eq__ returning duck array --- src/metpy/units.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metpy/units.py b/src/metpy/units.py index dde51b5f176..74743d10a67 100644 --- a/src/metpy/units.py +++ b/src/metpy/units.py @@ -182,7 +182,7 @@ def _check_argument_units(args, defaults, dimensionality): if arg in defaults: check = val == defaults[arg] - if check: + if np.all(check): continue # See if the value passed in is appropriate