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
7e236f6c
Commit
7e236f6c
authored
Mar 30, 2020
by
Matthijs
Browse files
bugfixes & typos
parent
b0c8f349
Changes
2
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/OrbitalTomog/pentacene_3d_config.py
View file @
7e236f6c
...
...
@@ -90,7 +90,7 @@ new_config = {
# if(strcmp('problem_family,'Phase'))
# maximum number of iterations and tolerances
'MAXIT'
:
500
,
'TOL'
:
1e-1
0
,
'TOL'
:
1e-1
5
,
# relaxaton parameters in RAAR, HPR and HAAR
'beta_0'
:
0.85
,
# 0.95 # starting relaxation prameter (only used with
...
...
proxtoolbox/Problems/OrbitalTomog/phase.py
View file @
7e236f6c
...
...
@@ -158,11 +158,11 @@ class Phase(Problem):
if
'interpolate_result'
in
self
.
config
and
self
.
config
[
'interpolate_result'
]:
self
.
output
[
key
]
=
interpolation
.
fourier_interpolate
(
self
.
output
[
key
])
if
'zoomin_on_result'
in
self
.
config
and
self
.
config
[
'zoomin_on_result'
]:
if
self
.
config
[
key
].
ndim
s
==
2
:
zmy
,
zmx
=
self
.
config
[
key
].
shape
# self.config['Ny'] // 4, self.config["Nx"] // 4
if
self
.
output
[
key
].
ndim
==
2
:
zmy
,
zmx
=
self
.
output
[
key
].
shape
# self.config['Ny'] // 4, self.config["Nx"] // 4
self
.
output
[
key
]
=
self
.
output
[
key
][
zmy
:
-
zmy
,
zmx
:
-
zmx
]
elif
self
.
config
[
key
].
ndim
s
==
3
:
zmy
,
zmx
,
zmz
=
self
.
config
[
key
].
shape
elif
self
.
output
[
key
].
ndim
==
3
:
zmy
,
zmx
,
zmz
=
self
.
output
[
key
].
shape
# (self.config['Ny'] // 4, self.config["Nx"] // 4, self.config['Nz'] // 4)
self
.
output
[
key
]
=
self
.
output
[
key
][
zmy
:
-
zmy
,
zmx
:
-
zmx
,
zmz
:
-
zmz
]
...
...
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