MCPcopy Index your code
hub / github.com/numpy/numpy / test_allclose_timedelta

Method test_allclose_timedelta

numpy/ma/tests/test_core.py:3370–3375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3368 assert_(allclose(a, a))
3369
3370 def test_allclose_timedelta(self):
3371 # Allclose currently works for timedelta64 as long as `atol` is
3372 # an integer or also a timedelta64
3373 a = np.array([[1, 2, 3, 4]], dtype="m8[ns]")
3374 assert allclose(a, a, atol=0)
3375 assert allclose(a, a, atol=np.timedelta64(1, "ns"))
3376
3377 def test_allany(self):
3378 # Checks the any/all methods/functions.

Callers

nothing calls this directly

Calls 1

allcloseFunction · 0.90

Tested by

no test coverage detected