Skip to content

Commit

Permalink
Data.where: remove rogue assigment to fix NoneType errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sadielbartholomew committed Aug 2, 2022
1 parent edd383c commit e450a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e450a40

Please sign in to comment.