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
a10c27d9
Commit
a10c27d9
authored
6 years ago
by
Sam Jenkins
Browse files
Options
Downloads
Patches
Plain Diff
Re #23690 Fixed failing tests
parent
21fe25ae
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/SystemTests/tests/analysis/reference/ISIS_Powder-GEM83605_FocusSempty.nxs.md5
+1
-1
1 addition, 1 deletion
...alysis/reference/ISIS_Powder-GEM83605_FocusSempty.nxs.md5
scripts/test/isis_powder/ISISPowderFocusCropTest.py
+4
-4
4 additions, 4 deletions
scripts/test/isis_powder/ISISPowderFocusCropTest.py
with
5 additions
and
5 deletions
Testing/SystemTests/tests/analysis/reference/ISIS_Powder-GEM83605_FocusSempty.nxs.md5
+
1
−
1
View file @
a10c27d9
7fd06e065b645d51c69c248303f76
26
5
1feccda871823814107a21de6eb9a
26
0
This diff is collapsed.
Click to expand it.
scripts/test/isis_powder/ISISPowderFocusCropTest.py
+
4
−
4
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
):
...
...
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