MCPcopy Create free account
hub / github.com/dask/dask / test_pad_3d_data

Function test_pad_3d_data

dask/array/tests/test_creation.py:967–974  ·  view source on GitHub ↗
(dtype, pad_widths, mode)

Source from the content-addressed store, hash-verified

965 ],
966)
967def test_pad_3d_data(dtype, pad_widths, mode):
968 np_a = np.arange(2 * 3 * 4).reshape(2, 3, 4).astype(dtype)
969 da_a = da.from_array(np_a, chunks="auto")
970
971 np_r = np.pad(np_a, pad_widths, mode=mode)
972 da_r = da.pad(da_a, pad_widths, mode=mode)
973
974 assert_eq(np_r, da_r)
975
976
977@pytest.mark.parametrize("kwargs", [{}, {"scaler": 2}])

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
reshapeMethod · 0.80
astypeMethod · 0.45
arangeMethod · 0.45

Tested by

no test coverage detected