[python-arrayfire] 03/11: Fixing graphics examples
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun May 1 19:50:22 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.
commit 316050fa20ff54332a41f380aeee6e646b416064
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Mon Apr 4 07:36:46 2016 -0400
Fixing graphics examples
---
examples/graphics/conway.py | 2 +-
examples/graphics/histogram.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/graphics/conway.py b/examples/graphics/conway.py
index f4d515c..49ad43b 100644
--- a/examples/graphics/conway.py
+++ b/examples/graphics/conway.py
@@ -66,7 +66,7 @@ while (not simple_win.close()) and (not pretty_win.close()):
A2 = (state == 0) & C1
A3 = (state == 1) & (neighborhood > 3)
- display = (af.join(2, A0 + A1, A1 + A2, A3).as_type(af.Dtype.f32)
+ display = af.join(2, A0 + A1, A1 + A2, A3).as_type(af.Dtype.f32)
state = state * C0 + C1
diff --git a/examples/graphics/histogram.py b/examples/graphics/histogram.py
index 3a3d29a..9a15dcf 100644
--- a/examples/graphics/histogram.py
+++ b/examples/graphics/histogram.py
@@ -29,7 +29,7 @@ if __name__ == "__main__":
hist_win = af.Window(512, 512, "3D Plot example using ArrayFire")
img_win = af.Window(480, 640, "Input Image")
- img = (af.load_image(sys.argv[1])).(af.Dtype.u8)
+ img = af.load_image(sys.argv[1]).as_type(af.Dtype.u8)
hist = af.histogram(img, 256, 0, 255)
while (not hist_win.close()) and (not img_win.close()):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list