MCPcopy Index your code
hub / github.com/pydata/xarray / test_concat_along_new_dim

Method test_concat_along_new_dim

xarray/tests/test_combine.py:1269–1278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1267 assert_identical(old, new)
1268
1269 def test_concat_along_new_dim(self):
1270 concat_dim = "new_dim"
1271 ds = create_test_data
1272 with set_options(use_new_combine_kwarg_defaults=False):
1273 old = concat([ds(0), ds(1)], dim=concat_dim)
1274 with set_options(use_new_combine_kwarg_defaults=True):
1275 new = concat([ds(0), ds(1)], dim=concat_dim)
1276
1277 assert concat_dim in old.dims
1278 assert concat_dim in new.dims
1279
1280 def test_nested_merge_with_overlapping_values(self):
1281 ds1 = Dataset({"a": ("x", [1, 2]), "x": [0, 1]})

Callers

nothing calls this directly

Calls 3

set_optionsClass · 0.90
concatFunction · 0.90
dsFunction · 0.70

Tested by

no test coverage detected