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
b2f0a3b8
Unverified
Commit
b2f0a3b8
authored
6 years ago
by
Antti Soininen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #23951 from mantidproject/23869_Refatcor_Wish_to_use_AlignAndFocusPowder
Refactor wish to use align and focus powder
parents
2f7e00b7
2502a8bb
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/SystemTests/tests/analysis/ISIS_WISHPowderReductionTest.py
+3
-0
3 additions, 0 deletions
...ystemTests/tests/analysis/ISIS_WISHPowderReductionTest.py
scripts/Diffraction/wish/reduce.py
+3
-2
3 additions, 2 deletions
scripts/Diffraction/wish/reduce.py
with
6 additions
and
2 deletions
Testing/SystemTests/tests/analysis/ISIS_WISHPowderReductionTest.py
+
3
−
0
View file @
b2f0a3b8
...
@@ -58,6 +58,7 @@ class WISHPowderReductionTest(MantidSystemTest):
...
@@ -58,6 +58,7 @@ class WISHPowderReductionTest(MantidSystemTest):
self
.
clearWorkspaces
()
self
.
clearWorkspaces
()
def
validate
(
self
):
def
validate
(
self
):
self
.
tolerence
=
1.e-8
validation_files
=
[]
validation_files
=
[]
for
panel
in
[
x
for
x
in
panels
if
x
<
6
]:
for
panel
in
[
x
for
x
in
panels
if
x
<
6
]:
validation_files
=
validation_files
+
\
validation_files
=
validation_files
+
\
...
@@ -93,6 +94,7 @@ class WISHPowderReductionNoAbsorptionTest(MantidSystemTest):
...
@@ -93,6 +94,7 @@ class WISHPowderReductionNoAbsorptionTest(MantidSystemTest):
self
.
clearWorkspaces
()
self
.
clearWorkspaces
()
def
validate
(
self
):
def
validate
(
self
):
self
.
tolerence
=
1.e-8
validation_files
=
[]
validation_files
=
[]
for
panel
in
[
x
for
x
in
panels
if
x
<
6
]:
for
panel
in
[
x
for
x
in
panels
if
x
<
6
]:
validation_files
=
validation_files
+
[
"
w40503-{0}_{1}foc
"
.
format
(
panel
,
linked_panels
.
get
(
panel
)),
validation_files
=
validation_files
+
[
"
w40503-{0}_{1}foc
"
.
format
(
panel
,
linked_panels
.
get
(
panel
)),
...
@@ -124,6 +126,7 @@ class WISHPowderReductionCreateVanadiumTest(MantidSystemTest):
...
@@ -124,6 +126,7 @@ class WISHPowderReductionCreateVanadiumTest(MantidSystemTest):
wish_test
.
create_vanadium_run
(
19612
,
19618
,
panels
)
wish_test
.
create_vanadium_run
(
19612
,
19618
,
panels
)
def
validate
(
self
):
def
validate
(
self
):
self
.
tolerence
=
1.e-8
validation_files
=
[]
validation_files
=
[]
for
panel
in
[
x
for
x
in
panels
if
x
<
6
]:
for
panel
in
[
x
for
x
in
panels
if
x
<
6
]:
validation_files
=
validation_files
+
[
"
w19612-{}foc
"
.
format
(
panel
),
validation_files
=
validation_files
+
[
"
w19612-{}foc
"
.
format
(
panel
),
...
...
This diff is collapsed.
Click to expand it.
scripts/Diffraction/wish/reduce.py
+
3
−
2
View file @
b2f0a3b8
...
@@ -197,8 +197,9 @@ class Wish:
...
@@ -197,8 +197,9 @@ class Wish:
cal
=
"
WISH_diff{}
"
cal
=
"
WISH_diff{}
"
if
cal
.
format
(
"
_cal
"
)
not
in
simple
.
mtd
:
if
cal
.
format
(
"
_cal
"
)
not
in
simple
.
mtd
:
simple
.
LoadDiffCal
(
filename
=
self
.
get_cal
(),
InstrumentName
=
"
WISH
"
,
WorkspaceName
=
cal
.
format
(
""
))
simple
.
LoadDiffCal
(
filename
=
self
.
get_cal
(),
InstrumentName
=
"
WISH
"
,
WorkspaceName
=
cal
.
format
(
""
))
simple
.
AlignDetectors
(
InputWorkspace
=
work
,
OutputWorkspace
=
work
,
CalibrationWorkspace
=
cal
.
format
(
"
_cal
"
))
simple
.
AlignAndFocusPowder
(
InputWorkspace
=
work
,
OutputWorkspace
=
focus
,
GroupingWorkspace
=
cal
.
format
(
"
_group
"
),
simple
.
DiffractionFocussing
(
InputWorkspace
=
work
,
OutputWorkspace
=
focus
,
GroupingWorkspace
=
cal
.
format
(
"
_group
"
))
CalibrationWorkspace
=
cal
.
format
(
"
_cal
"
),
Dspacing
=
True
,
params
=
"
-0.00063
"
)
simple
.
ConvertUnits
(
InputWorkspace
=
focus
,
OutputWorkspace
=
focus
,
Target
=
"
dSpacing
"
)
if
self
.
deleteWorkspace
:
if
self
.
deleteWorkspace
:
simple
.
DeleteWorkspace
(
work
)
simple
.
DeleteWorkspace
(
work
)
if
panel
==
5
or
panel
==
6
:
if
panel
==
5
or
panel
==
6
:
...
...
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