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

Function test_collect_dict_values

xarray/tests/test_computation.py:98–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def test_collect_dict_values() -> None:
99 dicts = [{"x": 1, "y": 2, "z": 3}, {"z": 4}, 5]
100 expected = [[1, 0, 5], [2, 0, 5], [3, 4, 5]]
101 collected = collect_dict_values(dicts, ["x", "y", "z"], fill_value=0)
102 assert collected == expected
103
104
105def identity(x):

Callers

nothing calls this directly

Calls 1

collect_dict_valuesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…