Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
106a6b4b
Commit
106a6b4b
authored
Feb 22, 2017
by
Christoph Ruegge
Browse files
Adjust inputdata path
parent
3f512af8
Changes
3
Hide whitespace changes
Inline
Side-by-side
DRprotein_demo.py
View file @
106a6b4b
#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
...
...
proxtoolbox/Problems/inpainting.py
View file @
106a6b4b
...
...
@@ -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
));
...
...
proxtoolbox/Problems/ptychography.py
View file @
106a6b4b
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment