コード例 #1
0
ファイル: test_h5py.py プロジェクト: MoherX/odo
def test_append_chunks():
    with file(x) as (fn, f, dset):
        append(dset, chunks(np.ndarray)([x, x]))

        assert len(dset) == len(x) * 3
コード例 #2
0
ファイル: test_h5py.py プロジェクト: pskyp/shareapplication
def test_append_chunks():
    with file(x) as (fn, f, dset):
        append(dset, chunks(np.ndarray)([x, x]))

        assert len(dset) == len(x) * 3
コード例 #3
0
ファイル: test_h5py.py プロジェクト: MoherX/odo
def test_append():
    with file(x) as (fn, f, dset):
        append(dset, x)
        assert eq(dset[:], np.concatenate([x, x]))
コード例 #4
0
ファイル: test_h5py.py プロジェクト: pskyp/shareapplication
def test_append():
    with file(x) as (fn, f, dset):
        append(dset, x)
        assert eq(dset[:], np.concatenate([x, x]))