Beispiel #1
0
def test_metadata_different_ordering():
    names, sizes, reso = lifio.metadata(test_lif, array_order='zcyxt')
    assert_equal(sizes, [(25, 4, 512, 512, 1), (46, 4, 512, 512, 1)])
Beispiel #2
0
def test_metadata():
    names, sizes, reso = lifio.metadata(test_lif)
    assert_equal(names, ['Series016', 'Series019'])
    assert_equal(sizes, [(1, 25, 512, 512, 4), (1, 46, 512, 512, 4)])
    assert_allclose(reso, [(0.9999, 1.5137, 1.5137),
                           (0.1395, 0.2539, 0.2539)], atol=1e-4)