diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 11:20:10 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 11:20:10 +0200 |
| commit | f712d46fcf745c09fd2ba3b875248b003a8243d9 (patch) | |
| tree | 80c17156d44a35a048a09abe3fe6ff37adfebbcc /test-mogrify.py | |
| parent | a96963fc57291ee82945249fe041a3448c328680 (diff) | |
recurse roll
Diffstat (limited to 'test-mogrify.py')
| -rw-r--r-- | test-mogrify.py | 8 |
1 files changed, 4 insertions, 4 deletions
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') |
