Skip to content

Commit

Permalink
Improve saving of data
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrhardt committed Feb 14, 2018
1 parent 6e37010 commit 808df46
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions odl/contrib/solvers/spdhg/examples/PET_1k.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@
data = odl.phantom.poisson_noise(factors * sinogram + background,
seed=1807)

np.save(file_data, (data, factors, background))
np.save(file_data, (data, factors, background))
arr = np.empty(3, dtype=object)
arr[0] = data
arr[1] = factors
arr[2] = background
np.save(file_data, arr)
# np.save(file_data, (data, factors, background))

fig1 = plt.figure(1)
groundtruth.show('groundtruth', clim=clim, fig=fig1)
Expand Down

0 comments on commit 808df46

Please sign in to comment.