Skip to content

Commit 7afbe51

Browse files
committed
Fix combine tests.
1 parent 4f3c488 commit 7afbe51

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

xarray/core/combine.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,11 @@ def _combine_1d(
243243
dim=concat_dim,
244244
data_vars=data_vars,
245245
coords=coords,
246-
compat=compat,
247246
fill_value=fill_value,
248247
join=join,
249248
)
250249
except ValueError as err:
251-
if "encountered unexpected variable" in str(err):
250+
if "Encountered unexpected variable" in str(err):
252251
raise ValueError(
253252
"These objects cannot be combined using only "
254253
"xarray.combine_nested, instead either use "
@@ -825,7 +824,6 @@ def _old_auto_combine(
825824
dim=dim,
826825
data_vars=data_vars,
827826
coords=coords,
828-
compat=compat,
829827
fill_value=fill_value,
830828
join=join,
831829
)
@@ -844,7 +842,7 @@ def _auto_concat(
844842
coords="different",
845843
fill_value=dtypes.NA,
846844
join="outer",
847-
compat="no_conflicts"
845+
compat="equals",
848846
):
849847
if len(datasets) == 1 and dim is None:
850848
# There is nothing more to combine, so kick out early.
@@ -871,6 +869,10 @@ def _auto_concat(
871869
)
872870
dim, = concat_dims
873871
return concat(
874-
datasets, dim=dim, data_vars=data_vars, coords=coords, fill_value=fill_value,
875-
compat=compat
872+
datasets,
873+
dim=dim,
874+
data_vars=data_vars,
875+
coords=coords,
876+
fill_value=fill_value,
877+
compat=compat,
876878
)

0 commit comments

Comments
 (0)