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

Function test_make_meta

xarray/tests/test_dask.py:1523–1534  ·  view source on GitHub ↗
(map_ds)

Source from the content-addressed store, hash-verified

1521
1522
1523def test_make_meta(map_ds):
1524 from xarray.core.parallel import make_meta
1525
1526 meta = make_meta(map_ds)
1527
1528 for variable in map_ds._coord_names:
1529 assert variable in meta._coord_names
1530 assert meta.coords[variable].shape == (0,) * meta.coords[variable].ndim
1531
1532 for variable in map_ds.data_vars:
1533 assert variable in meta.data_vars
1534 assert meta.data_vars[variable].shape == (0,) * meta.data_vars[variable].ndim
1535
1536
1537def test_identical_coords_no_computes():

Callers

nothing calls this directly

Calls 1

make_metaFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…