Skip to content

Commit

Permalink
use .attrs to avoid passing None
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Aug 3, 2021
1 parent 8fedd84 commit 8d23032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ def reduce(
keep_attrs = "override" if keep_attrs else "drop"

attrs = merge_attrs(
[self._attrs], combine_attrs=keep_attrs, context=Context(func.__name__)
[self.attrs], combine_attrs=keep_attrs, context=Context(func.__name__)
)

return Variable(dims, data, attrs=attrs)
Expand Down

0 comments on commit 8d23032

Please sign in to comment.