Skip to content
forked from pydata/xarray

Commit

Permalink
remove the outdated datasets argument to combine_by_coords
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Jul 23, 2021
1 parent 5cc85c8 commit 85f5d2c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions xarray/core/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,16 +635,14 @@ def _combine_single_variable_hypercube(
return concatenated


# TODO remove empty list default param after version 0.19, see PR4696
def combine_by_coords(
data_objects=[],
data_objects,
compat="no_conflicts",
data_vars="all",
coords="different",
fill_value=dtypes.NA,
join="outer",
combine_attrs="no_conflicts",
datasets=None,
):
"""
Attempt to auto-magically combine the given datasets (or data arrays)
Expand Down Expand Up @@ -849,14 +847,6 @@ def combine_by_coords(
precipitation (y, x) float64 0.4376 0.8918 0.9637 ... 0.5684 0.01879 0.6176
"""

# TODO remove after version 0.19, see PR4696
if datasets is not None:
warnings.warn(
"The datasets argument has been renamed to `data_objects`."
" In future passing a value for datasets will raise an error."
)
data_objects = datasets

if not data_objects:
return Dataset()

Expand Down

0 comments on commit 85f5d2c

Please sign in to comment.