Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Apr 26, 2024
1 parent 1d471b1 commit 766605d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xarray/core/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,7 @@ def _dataset_concat(

# case where concat dimension is a coordinate or data_var but not a dimension
if (dim in coord_names or dim in data_names) and dim not in dim_names:
datasets = [
ds.expand_dims(dim, create_index=create_index) for ds in datasets
]
datasets = [ds.expand_dims(dim, create_index=create_index) for ds in datasets]

# determine which variables to concatenate
concat_over, equals, concat_dim_lengths = _calc_concat_over(
Expand Down

0 comments on commit 766605d

Please sign in to comment.