MCPcopy
hub / github.com/pydata/xarray / test_concat_once

Method test_concat_once

xarray/tests/test_combine.py:309–325  ·  view source on GitHub ↗
(self, create_combined_ids, concat_dim, kwargs)

Source from the content-addressed store, hash-verified

307 "concat_dim, kwargs", [("dim1", {}), ("new_dim", {"data_vars": "all"})]
308 )
309 def test_concat_once(self, create_combined_ids, concat_dim, kwargs):
310 shape = (2,)
311 combined_ids = create_combined_ids(shape)
312 ds = create_test_data
313 result = _combine_all_along_first_dim(
314 combined_ids,
315 dim=concat_dim,
316 data_vars="all",
317 coords="different",
318 compat="no_conflicts",
319 fill_value=dtypes.NA,
320 join="outer",
321 combine_attrs="drop",
322 )
323
324 expected_ds = concat([ds(0), ds(1)], dim=concat_dim, **kwargs)
325 assert_combined_tile_ids_equal(result, {(): expected_ds})
326
327 def test_concat_only_first_dim(self, create_combined_ids):
328 shape = (2, 3)

Callers

nothing calls this directly

Calls 5

concatFunction · 0.90
create_combined_idsFunction · 0.85
dsFunction · 0.70

Tested by

no test coverage detected