Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and kmuehlbauer committed Jan 9, 2023
1 parent 007881d commit 68b1748
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xarray/core/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,11 @@ def get_indexes(name):
# do not concat if:
# 1. variable is only present in one dataset of multiple datasets and
# 2. dim is not a dimension of variable
if dim not in variables[0].dims and len(variables) == 1 and len(datasets) > 1:
if (
dim not in variables[0].dims
and len(variables) == 1
and len(datasets) > 1
):
combined_var = variables[0]
# only concat if variable is in multiple datasets
# or if single dataset (GH1988)
Expand Down

0 comments on commit 68b1748

Please sign in to comment.