コード例 #1
0
ファイル: test_warps.py プロジェクト: Aakalpa/Thrift
def test_stackcopy():
    layers = 4
    x = np.empty((3, 3, layers))
    y = np.eye(3, 3)
    _stackcopy(x, y)
    for i in range(layers):
        assert_almost_equal(x[..., i], y)
コード例 #2
0
ファイル: test_warps.py プロジェクト: andreydung/scikit-image
def test_stackcopy():
    layers = 4
    x = np.empty((3, 3, layers))
    y = np.eye(3, 3)
    _stackcopy(x, y)
    for i in range(layers):
        assert_almost_equal(x[..., i], y)