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

Method test_to_stacked_array_name

xarray/tests/test_dataset.py:4334–4343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4332 data.to_stacked_array("features", sample_dims=["y"])
4333
4334 def test_to_stacked_array_name(self) -> None:
4335 name = "adf9d"
4336
4337 # make a two dimensional dataset
4338 a, b = create_test_stacked_array()
4339 D = xr.Dataset({"a": a, "b": b})
4340 sample_dims = ["x"]
4341
4342 y = D.to_stacked_array("features", sample_dims, name=name)
4343 assert y.name == name
4344
4345 def test_to_stacked_array_dtype_dims(self) -> None:
4346 # make a two dimensional dataset

Callers

nothing calls this directly

Calls 2

to_stacked_arrayMethod · 0.95

Tested by

no test coverage detected