From e450a407725914def8322d2753723318cf018a01 Mon Sep 17 00:00:00 2001 From: "Sadie L. Bartholomew" Date: Tue, 2 Aug 2022 02:38:58 +0100 Subject: [PATCH] Data.where: remove rogue assigment to fix NoneType errors --- cf/data/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf/data/data.py b/cf/data/data.py index c9445a02d7..ac09a9c0f4 100644 --- a/cf/data/data.py +++ b/cf/data/data.py @@ -9937,7 +9937,7 @@ def where( # condition units are OK, and convert the condition to a # boolean dask array with the same shape as the data. condition = condition.copy() - condition = condition.set_condition_units(units) + condition.set_condition_units(units) condition = condition.evaluate(d) condition = type(self).asdata(condition)