Skip to content

Commit 7240729

Browse files
committed
Set coordinate name if is None
1 parent 4f1e2d3 commit 7240729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xarray/core/concat.py

+2
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ def _calc_concat_dim_coord(dim):
264264
(dim,) = coord.dims
265265
else:
266266
coord = dim
267+
if coord.name is None:
268+
coord.name = dim.dims[0]
267269
(dim,) = coord.dims
268270
return dim, coord
269271

0 commit comments

Comments
 (0)