Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
a10c27d9
Commit
a10c27d9
authored
Oct 02, 2018
by
Sam Jenkins
Browse files
Re #23690 Fixed failing tests
parent
21fe25ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Testing/SystemTests/tests/analysis/reference/ISIS_Powder-GEM83605_FocusSempty.nxs.md5
View file @
a10c27d9
7fd06e065b645d51c69c248303f76
26
5
1feccda871823814107a21de6eb9a
26
0
scripts/test/isis_powder/ISISPowderFocusCropTest.py
View file @
a10c27d9
...
...
@@ -9,7 +9,7 @@ class ISISPowderFocusCropTest(unittest.TestCase):
x
=
[
0
,
10
,
20
,
30
,
40
,
50
,
60
,
70
,
80
,
90
,
100
]
y
=
[
0
,
0
,
10
,
30
,
2000
,
80
,
50
,
40
,
30
,
25
,
30
]
test_ws
=
mantid
.
CreateWorkspace
(
DataX
=
x
,
DataY
=
y
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
,
test_ws
)
y_compare
=
[
30
,
2000
,
80
,
50
,
40
,
30
,
25
,
30
]
result
=
test_ws
.
readY
(
0
)
for
compare
,
val
in
zip
(
y_compare
,
result
):
...
...
@@ -19,7 +19,7 @@ class ISISPowderFocusCropTest(unittest.TestCase):
x
=
[
0
,
10
,
20
,
30
,
40
,
50
,
60
,
70
,
80
,
90
,
100
]
y
=
[
50
,
100
,
300
,
500
,
2000
,
80
,
50
,
0
,
0
,
0
,
0
]
test_ws
=
mantid
.
CreateWorkspace
(
DataX
=
x
,
DataY
=
y
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
,
test_ws
)
y_compare
=
[
50
,
100
,
300
,
500
,
2000
,
80
,
50
]
result
=
test_ws
.
readY
(
0
)
for
compare
,
val
in
zip
(
y_compare
,
result
):
...
...
@@ -29,7 +29,7 @@ class ISISPowderFocusCropTest(unittest.TestCase):
x
=
[
0
,
10
,
20
,
30
,
40
,
50
,
60
,
70
,
80
,
90
,
100
]
y
=
[
0
,
0
,
10
,
30
,
2000
,
80
,
50
,
0
,
0
,
0
,
0
]
test_ws
=
mantid
.
CreateWorkspace
(
DataX
=
x
,
DataY
=
y
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
,
test_ws
)
y_compare
=
[
30
,
2000
,
80
,
50
]
result
=
test_ws
.
readY
(
0
)
for
compare
,
val
in
zip
(
y_compare
,
result
):
...
...
@@ -39,7 +39,7 @@ class ISISPowderFocusCropTest(unittest.TestCase):
x
=
[
0
,
10
,
20
,
30
,
40
,
50
,
60
,
70
,
80
,
90
,
100
]
y
=
[
1
,
5
,
10
,
30
,
20
,
80
,
50
,
40
,
20
,
10
,
1
]
test_ws
=
mantid
.
CreateWorkspace
(
DataX
=
x
,
DataY
=
y
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
)
test_ws
=
focus
.
_crop_spline_to_percent_of_max
(
test_ws
,
test_ws
,
test_ws
)
y_compare
=
[
1
,
5
,
10
,
30
,
20
,
80
,
50
,
40
,
20
,
10
,
1
]
result
=
test_ws
.
readY
(
0
)
for
compare
,
val
in
zip
(
y_compare
,
result
):
...
...
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