From 9a1aa8959b3ccbd04e454d9b12d03a7b6ffaa3ce Mon Sep 17 00:00:00 2001 From: jakobsj Date: Thu, 22 Mar 2018 15:47:55 +0000 Subject: Simple demo ip (#79) * Removed regularizers * DemoIP running. MC Lipschitz incorrect * Fixed MC Lipschitz * Removed old import --- data/read_IPdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data') 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 -- cgit v1.2.3