Skip to content

Commit 59b851f

Browse files
committed
removing multiply function and use functionality from UCL#1630
1 parent 56256a7 commit 59b851f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/python/recon_demo_gradient.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
# go to directory with input files
88
os.chdir('../recon_demo')
99

10-
# define a function due to current limitation on Swig. " multiply_images(a,b)"
11-
def multiply_images(a, b):
12-
a.xapyb(a,b,a.get_empty_copy(),a)
13-
return a
14-
15-
1610
# %%
1711
# initialise reconstruction object
1812
# we will do this here via a .par file
@@ -62,7 +56,7 @@ def multiply_images(a, b):
6256

6357
# The followin is just the first iteration you need to create a for
6458
# loop to run all the iterations and subsets
65-
EMupdate = multiply_images(target,gradient)
59+
EMupdate = target*gradient
6660
# extract to python for plotting
6761
npimage = stirextra.to_numpy(EMupdate)
6862
plt.plot(npimage[10, 30, :])

0 commit comments

Comments
 (0)