Example #1
0
    def testAround(self):
        t1 = ones((2, 3), dtype='f4', chunk_size=2)

        t = around(t1, decimals=3)

        self.assertFalse(t.issparse())
        self.assertEqual(t.op.decimals, 3)

        t.tiles()

        self.assertEqual(t.chunks[0].op.decimals, 3)
Example #2
0
def test_around():
    t1 = ones((2, 3), dtype='f4', chunk_size=2)

    t = around(t1, decimals=3)

    assert t.issparse() is False
    assert t.op.decimals == 3

    t = tile(t)

    assert t.chunks[0].op.decimals == 3