Commit ea092173 authored by Alexander Dornheim's avatar Alexander Dornheim
Browse files

Adjusted input data folder for Ptychography to ../InputData/Ptychography instead of inputdata

parent 39c56c7c
......@@ -1941,7 +1941,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/Ptychography/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));
......@@ -2445,18 +2445,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/Ptychography/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/Ptychography/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/Ptychography/positions_NTT_01_26210.mat')
positions = data['positions'].astype(numpy.float);
positions[:,0] /= d1y;
positions[:,0] -= numpy.amin(positions[:,0]);
......
Supports Markdown
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