From 68b174870de3861236be267992bcfef54f25ea6b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:05:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/core/concat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xarray/core/concat.py b/xarray/core/concat.py index f492269b916..67023c800f1 100644 --- a/xarray/core/concat.py +++ b/xarray/core/concat.py @@ -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)