def unwrap(self): im = image.rarray((101, 101)) rt, r, th, n = image.unwrap(im, [50, 50], bins=10) assert np.allclose(rt[3, :5], rt[3, 5:])
def test_rarray(self): r = image.rarray((10, 10), subsample=10) assert all(r[4:6, 4] == r[4:6, 5])