We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bf38c2 commit c53c400Copy full SHA for c53c400
xarray/core/concat.py
@@ -536,9 +536,10 @@ def _dataset_concat(
536
result_encoding = datasets[0].encoding
537
538
# check that global attributes are fixed across all datasets if necessary
539
- for ds in datasets[1:]:
540
- if compat == "identical" and not utils.dict_equiv(ds.attrs, result_attrs):
541
- raise ValueError("Dataset global attributes not equal.")
+ if compat == "identical":
+ for ds in datasets[1:]:
+ if not utils.dict_equiv(ds.attrs, result_attrs):
542
+ raise ValueError("Dataset global attributes not equal.")
543
544
# we've already verified everything is consistent; now, calculate
545
# shared dimension sizes so we can expand the necessary variables
0 commit comments