def test_read_image_series(): rdr0 = lifio.image_reader(test_lif) im0 = lifio.read_image_series(rdr0, desired_order=None) im0 = im0.transpose((0, 1, 3, 4, 2)) # native order is tzcyx im1 = lifio.read_image_series(test_lif, desired_order='ctzyx') im1 = im1.transpose((1, 2, 3, 4, 0)) assert_equal(im0, im1)
def test_read_one_channel(): im0 = lifio.read_image_series(test_lif, z=0, c=0) assert_equal(np.squeeze(im0).shape, (512, 512))