MCPcopy
hub / github.com/dask/dask / test_squeeze_1d_array

Function test_squeeze_1d_array

dask/array/tests/test_routines.py:1616–1623  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

1614
1615@pytest.mark.parametrize("shape", [(1,), (1, 1)])
1616def test_squeeze_1d_array(shape):
1617 a = np.full(shape=shape, fill_value=2)
1618 a_s = np.squeeze(a)
1619 d = da.from_array(a, chunks=(1))
1620 d_s = da.squeeze(d)
1621 assert isinstance(d_s, da.Array)
1622 assert isinstance(d_s.compute(), np.ndarray)
1623 assert_eq(d_s, a_s)
1624
1625
1626def test_vstack():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
fullMethod · 0.45
squeezeMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…