Skip to content
/ xarray Public
forked from pydata/xarray

Commit 85f5d2c

Browse files
committed
remove the outdated datasets argument to combine_by_coords
1 parent 5cc85c8 commit 85f5d2c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

xarray/core/combine.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -635,16 +635,14 @@ def _combine_single_variable_hypercube(
635635
return concatenated
636636

637637

638-
# TODO remove empty list default param after version 0.19, see PR4696
639638
def combine_by_coords(
640-
data_objects=[],
639+
data_objects,
641640
compat="no_conflicts",
642641
data_vars="all",
643642
coords="different",
644643
fill_value=dtypes.NA,
645644
join="outer",
646645
combine_attrs="no_conflicts",
647-
datasets=None,
648646
):
649647
"""
650648
Attempt to auto-magically combine the given datasets (or data arrays)
@@ -849,14 +847,6 @@ def combine_by_coords(
849847
precipitation (y, x) float64 0.4376 0.8918 0.9637 ... 0.5684 0.01879 0.6176
850848
"""
851849

852-
# TODO remove after version 0.19, see PR4696
853-
if datasets is not None:
854-
warnings.warn(
855-
"The datasets argument has been renamed to `data_objects`."
856-
" In future passing a value for datasets will raise an error."
857-
)
858-
data_objects = datasets
859-
860850
if not data_objects:
861851
return Dataset()
862852

0 commit comments

Comments
 (0)