Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
4bf55022
Commit
4bf55022
authored
6 years ago
by
Sam Jenkins
Browse files
Options
Downloads
Patches
Plain Diff
Re #24073 working Tests
parent
e70aa536
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/SystemTests/tests/analysis/ISIS_WISHPowderReductionTest.py
+9
-8
9 additions, 8 deletions
...ystemTests/tests/analysis/ISIS_WISHPowderReductionTest.py
scripts/wish/reduce.py
+250
-534
250 additions, 534 deletions
scripts/wish/reduce.py
with
259 additions
and
542 deletions
Testing/SystemTests/tests/analysis/ISIS_WISHPowderReductionTest.py
+
9
−
8
View file @
4bf55022
from
systemtesting
import
MantidSystemTest
from
systemtesting
import
MantidSystemTest
from
wish.reduce
import
Wish
_Run
from
wish.reduce
import
Wish
from
mantid
import
config
from
mantid
import
config
import
mantid.simpleapi
as
mantid
import
mantid.simpleapi
as
mantid
...
@@ -48,18 +48,19 @@ class WISHPowderReductionTest(MantidSystemTest):
...
@@ -48,18 +48,19 @@ class WISHPowderReductionTest(MantidSystemTest):
def
runTest
(
self
):
def
runTest
(
self
):
os
.
makedirs
(
output_dir
)
os
.
makedirs
(
output_dir
)
Wish_Run
(
"
__main__
"
,
calibration_dir
+
"
/
"
,
input_dir
,
output_dir
,
True
)
wish_test
=
Wish
(
"
__main__
"
,
calibration_dir
+
"
/
"
,
output_dir
+
"
/
"
,
True
,
input_dir
)
wish_test
.
reduce
()
self
.
clearWorkspaces
()
self
.
clearWorkspaces
()
def
validate
(
self
):
def
validate
(
self
):
return
"
w40503-1_10foc
"
,
"
WISH40503-1_10raw.nxs
"
,
\
#
return "w40503-1_10foc", "WISH40503-1_10raw.nxs", \
"
w40503-2_9foc
"
,
"
WISH40503-2_9raw.nxs
"
,
\
#
"w40503-2_9foc", "WISH40503-2_9raw.nxs", \
"
w40503-3_8foc
"
,
"
WISH40503-3_8raw.nxs
"
,
\
#
"w40503-3_8foc", "WISH40503-3_8raw.nxs", \
"
w40503-4_7foc
"
,
"
WISH40503-4_7raw.nxs
"
,
\
#
"w40503-4_7foc", "WISH40503-4_7raw.nxs", \
"
w40503-5_6foc
"
,
"
WISH40503-5_6raw.nxs
"
return
"
w40503-5_6foc
"
,
"
WISH40503-5_6raw.nxs
"
def
clearWorkspaces
(
self
):
def
clearWorkspaces
(
self
):
deletews
=
[
"
w40503-
"
+
str
(
i
)
+
"
foc
"
for
i
in
range
(
1
,
11
)]
deletews
=
[
"
w40503-
"
+
str
(
i
)
+
"
foc
"
for
i
in
range
(
5
,
7
)]
for
ws
in
deletews
:
for
ws
in
deletews
:
mantid
.
DeleteWorkspace
(
ws
)
mantid
.
DeleteWorkspace
(
ws
)
mantid
.
DeleteWorkspace
(
ws
+
"
-d
"
)
mantid
.
DeleteWorkspace
(
ws
+
"
-d
"
)
...
...
This diff is collapsed.
Click to expand it.
scripts/wish/reduce.py
+
250
−
534
View file @
4bf55022
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment