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
a5ed7d07
Commit
a5ed7d07
authored
Mar 25, 2019
by
alexander.dornheim
Browse files
Added TestAll to TestAll examples. For now only tests ART.
parent
5998f724
Changes
1
Hide whitespace changes
Inline
Side-by-side
TestSuite/TestAll.py
0 → 100644
View file @
a5ed7d07
import
sys
sys
.
path
.
append
(
'../proxtoolbox/Problems/CT'
)
sys
.
path
.
append
(
'..'
)
from
ART
import
ART
import
proxtoolbox.Problems.CT
print
(
"Starting Test routine
\n
"
)
ART_examples
=
[
"ART_alternating_proj_in"
,
"ART_averaged_proj_in"
,
"BLOCK_AP_parallel_ART_in"
,
"BLOCK_GRAAL_parallel_ART_in"
,
"BLOCK_RAAR_parallel_ART_in"
,
"BLOCK_RAAR_sequential_ART_in"
]
print
(
"Testing ART"
)
for
example
in
ART_examples
:
print
(
"
\n
"
)
print
(
"Test "
+
example
)
demo
=
getattr
(
proxtoolbox
.
Problems
.
CT
,
example
)
config
=
demo
.
new_config
config
[
'MAXIT'
]
=
10
CT
=
ART
(
demo
.
new_config
)
CT
.
solve
()
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