Skip to content

Commit

Permalink
make sure there's no code path without create_template
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Aug 12, 2023
1 parent aacd1b8 commit 894ce2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,7 @@ def _unstack_once(
create_template = np.empty_like
else:
dtype = self.dtype
create_template = partial(np.full_like, fill_value=fill_value)

if sparse:
# unstacking a dense multitindexed array to a sparse array
Expand Down

0 comments on commit 894ce2f

Please sign in to comment.