Skip to content

Commit 316050f

Browse files
committed
Fixing graphics examples
1 parent 6a79fdb commit 316050f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/graphics/conway.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
A2 = (state == 0) & C1
6767
A3 = (state == 1) & (neighborhood > 3)
6868

69-
display = (af.join(2, A0 + A1, A1 + A2, A3).as_type(af.Dtype.f32)
69+
display = af.join(2, A0 + A1, A1 + A2, A3).as_type(af.Dtype.f32)
7070

7171
state = state * C0 + C1
7272

examples/graphics/histogram.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
hist_win = af.Window(512, 512, "3D Plot example using ArrayFire")
3030
img_win = af.Window(480, 640, "Input Image")
3131

32-
img = (af.load_image(sys.argv[1])).(af.Dtype.u8)
32+
img = af.load_image(sys.argv[1]).as_type(af.Dtype.u8)
3333
hist = af.histogram(img, 256, 0, 255)
3434

3535
while (not hist_win.close()) and (not img_win.close()):

0 commit comments

Comments
 (0)