summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-22 14:51:30 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-22 14:51:30 +0200
commite15d8501c5e2fa3e9cb23ce09df1dc0acd8475cd (patch)
tree9980480490eeb8a42daf40c773b4f5d5b0375a70 /test.py
parent1c9efcae8362bfe8f29ac9e2e771b816f700009c (diff)
push
Diffstat (limited to 'test.py')
-rw-r--r--test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 5818b8b..99f08fd 100644
--- a/test.py
+++ b/test.py
@@ -65,7 +65,7 @@ if __name__ == '__main__':
tmp_im = im.copy()
array_a = np.multiply(im, 1/frac)
array_b = np.multiply(last_im, (frac-1)/frac)
- im = np.add(array_a, array_b).astype(int)
+ im = np.add(array_a, array_b).astype('int8')
print(im.shape, im.dtype)
last_im = tmp_im
else: