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

Function test_arange_float_step

dask/array/tests/test_creation.py:322–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321
322def test_arange_float_step():
323 darr = da.arange(2.0, 13.0, 0.3, chunks=4)
324 nparr = np.arange(2.0, 13.0, 0.3)
325 assert_eq(darr, nparr)
326
327 darr = da.arange(7.7, 1.5, -0.8, chunks=3)
328 nparr = np.arange(7.7, 1.5, -0.8)
329 assert_eq(darr, nparr)
330
331 darr = da.arange(0, 1, 0.01, chunks=20)
332 nparr = np.arange(0, 1, 0.01)
333 assert_eq(darr, nparr)
334
335 darr = da.arange(0, 1, 0.03, chunks=20)
336 nparr = np.arange(0, 1, 0.03)
337 assert_eq(darr, nparr)
338
339
340def test_indices_wrong_chunks():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected