Commit 106a6b4b authored by Christoph Ruegge's avatar Christoph Ruegge
Browse files

Adjust inputdata path

parent 3f512af8
#Input, Output and Logfiles
problemName = '1PTQ'
inputFile = '../inputdata/1PTQ.pdb' #in InputFiles directory
inputFile = 'inputdata/1PTQ.pdb' #in InputFiles directory
outputFile = '1PTQrecon.pdb'
#Parameters used by all variants of the algorithm
......
......@@ -367,7 +367,7 @@ class Inpainting(Problem):
default_config = {
'sim_data_type':'scarf.png',
'data_path':'../inputdata/',
'data_path':'inputdata/',
'Nx':100,
'Ny':100,
'Nz':1,
......@@ -495,7 +495,7 @@ class Inpainting(Problem):
sample_plane = None;
if self.config['sim_data_type'] == 'gaenseliesel':
g = pyplot.imread('../inputdata/gaenseliesel.png').astype(numpy.float);
g = pyplot.imread('inputdata/gaenseliesel.png').astype(numpy.float);
g /= numpy.amax(g);
g = 0.8*g + 0.1;
sample_plane = numpy.abs(g) * (numpy.cos(g) + 1j*numpy.sin(g));
......
......@@ -1937,7 +1937,7 @@ class Ptychography(Problem):
sample_plane = None;
if self.config['sim_data_type'] == 'gaenseliesel':
g = pyplot.imread('../inputdata/gaenseliesel.png').astype(numpy.float);
g = pyplot.imread('inputdata/gaenseliesel.png').astype(numpy.float);
g /= numpy.amax(g);
g = 0.8*g + 0.1;
sample_plane = numpy.abs(g) * (numpy.cos(g) + 1j*numpy.sin(g));
......@@ -2441,18 +2441,18 @@ class Ptychography_NTT_01_26210(Ptychography):
Overloads the corresponding method of :class:`Ptychography`
to create other experiment data
"""
data = scipy.io.loadmat('../../inputdata/data_NTT_01_26210_192x192.mat');
data = scipy.io.loadmat('../inputdata/data_NTT_01_26210_192x192.mat');
d1y = data['d1y'][0][0];
d1x = data['d1x'][0][0];
i_exp = data['I_exp'];
l = data['lambda'][0][0];
z01 = data['z01'][0][0];
self.config['fmask'] = data['fmask'].astype(numpy.float);
data = scipy.io.loadmat('../../inputdata/reconstruction_data_NTT_01_26210_192x192.mat');
data = scipy.io.loadmat('../inputdata/reconstruction_data_NTT_01_26210_192x192.mat');
probe = data['Probe'];
sample_plane = data['object'];
data = scipy.io.loadmat('../../inputdata/positions_NTT_01_26210.mat')
data = scipy.io.loadmat('../inputdata/positions_NTT_01_26210.mat')
positions = data['positions'].astype(numpy.float);
positions[:,0] /= d1y;
positions[:,0] -= numpy.amin(positions[:,0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment