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
18538e9f
Commit
18538e9f
authored
Nov 04, 2020
by
jansen31
Browse files
simplify
parent
1ca20b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/experiments/orbitaltomography/orthogonal_orbits.py
View file @
18538e9f
...
...
@@ -16,11 +16,10 @@ class OrthogonalOrbitals(PlanarMolecule):
'data_filename'
:
None
,
'from_intensity_data'
:
True
,
'object'
:
'real'
,
'degeneracy'
:
2
,
# Number of degenerate states to reconstruct
'constraint'
:
'sparse real'
,
'sparsity_parameter'
:
40
,
'sparsity_parameter'
:
75
,
'use_sparsity_with_support'
:
True
,
'threshold_for_support'
:
0.0
1
,
'threshold_for_support'
:
0.0
5
,
'support_filename'
:
None
,
'Nx'
:
None
,
'Ny'
:
None
,
...
...
@@ -30,14 +29,10 @@ class OrthogonalOrbitals(PlanarMolecule):
'lambda_0'
:
0.85
,
'lambda_max'
:
0.50
,
'lambda_switch'
:
50
,
'data_ball'
:
.
999826
,
'TOL2'
:
1e-15
,
'diagnostic'
:
True
,
'algorithm'
:
'CP'
,
'algorithm'
:
'CP'
,
# Cyclic Projections: reduces to AP when only given 2 proxoperators
'iterate_monitor_name'
:
'FeasibilityIterateMonitor'
,
# 'IterateMonitor', #
'rotate'
:
False
,
'verbose'
:
1
,
'graphics'
:
1
,
'interpolate_and_zoom'
:
True
,
'debug'
:
True
,
'progressbar'
:
None
...
...
@@ -107,9 +102,8 @@ class OrthogonalOrbitals(PlanarMolecule):
absolute_autocorrelation
=
True
,
binary_dilate_support
=
1
)
if
self
.
use_sparsity_with_support
:
self
.
sparsity_support
=
support_from_stack
(
self
.
data
,
threshold
=
self
.
threshold_for_support
,
binary_dilate_support
=
1
)
self
.
sparsity_support
=
self
.
support
self
.
createRandomGuess
()
# some variables wich are necessary for the algorithm:
...
...
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