Skip to content

Commit

Permalink
reduce silly changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Aug 30, 2019
1 parent e7b152c commit c114143
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xarray/core/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _combine_1d(
join=join,
)
except ValueError as err:
if "Encountered unexpected variable" in str(err):
if "encountered unexpected variable" in str(err):
raise ValueError(
"These objects cannot be combined using only "
"xarray.combine_nested, instead either use "
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def _dataset_concat(
# check that global attributes are fixed across all datasets if necessary
for ds in datasets[1:]:
if compat == "identical" and not utils.dict_equiv(ds.attrs, result_attrs):
raise ValueError("Dataset global attributes are not equal.")
raise ValueError("Dataset global attributes not equal.")

# we've already verified everything is consistent; now, calculate
# shared dimension sizes so we can expand the necessary variables
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/test_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_concat_errors(self):
with raises_regex(ValueError, "are not coordinates"):
concat([data, data], "new_dim", coords=["not_found"])

with raises_regex(ValueError, "global attributes are not"):
with raises_regex(ValueError, "global attributes not"):
data0, data1 = deepcopy(split_data)
data1.attrs["foo"] = "bar"
concat([data0, data1], "dim1", compat="identical")
Expand Down

0 comments on commit c114143

Please sign in to comment.