From f712d46fcf745c09fd2ba3b875248b003a8243d9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 15 May 2018 11:20:10 +0200 Subject: recurse roll --- test-mogrify.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test-mogrify.py') diff --git a/test-mogrify.py b/test-mogrify.py index 676b1ad..31eba64 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -215,10 +215,10 @@ if __name__ == '__main__': array_b = np.multiply(im.astype('float64'), frac_b) next_im = np.add(array_a, array_b).astype('uint8') - # if data_opt.recurse_roll != 0: - # last_im = np.roll(tmp_im, data_opt.recurse_roll, axis=data_opt.recurse_roll_axis) - # else: - last_im = next_im.copy().astype('uint8') + if data_opt.recurse_roll != 0: + last_im = np.roll(tmp_im, data_opt.recurse_roll, axis=data_opt.recurse_roll_axis) + else: + last_im = next_im.copy().astype('uint8') else: last_im = im.copy().astype('uint8') -- cgit v1.2.3-70-g09d2