diff options
author | jakobsj <jakobsj@users.noreply.github.com> | 2018-03-22 15:47:55 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-03-22 15:47:55 +0000 |
commit | 9a1aa8959b3ccbd04e454d9b12d03a7b6ffaa3ce (patch) | |
tree | 78203792d96a9d3f0981d6a2695120b0506b0f01 /data | |
parent | 51a02e76330bee6a53de4a158eaa7d67ac942db0 (diff) | |
download | framework-9a1aa8959b3ccbd04e454d9b12d03a7b6ffaa3ce.tar.gz framework-9a1aa8959b3ccbd04e454d9b12d03a7b6ffaa3ce.tar.bz2 framework-9a1aa8959b3ccbd04e454d9b12d03a7b6ffaa3ce.tar.xz framework-9a1aa8959b3ccbd04e454d9b12d03a7b6ffaa3ce.zip |
Simple demo ip (#79)
* Removed regularizers
* DemoIP running. MC Lipschitz incorrect
* Fixed MC Lipschitz
* Removed old import
Diffstat (limited to 'data')
-rw-r--r-- | data/read_IPdata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/read_IPdata.py b/data/read_IPdata.py index 2e6a525..a7565d7 100644 --- a/data/read_IPdata.py +++ b/data/read_IPdata.py @@ -7,9 +7,9 @@ from scipy import io import numpy as np from collections import defaultdict -def read_IPdata(): +def read_IPdata(datafile): # read data from mat file (specify the location) - alldata = io.loadmat('IP_data70channels.mat') + alldata = io.loadmat(datafile) data_raw = alldata.get('Data_raw') # here is raw projection data Phantom_ideal = alldata.get('Phantom_ideal') # here is 70 channels ideal phantom Photon_flux = alldata.get('Photon_flux') # photon flux for normalization |