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
c8a39322
Commit
c8a39322
authored
11 years ago
by
Owen Arnold
Browse files
Options
Downloads
Patches
Plain Diff
refs #8951. Fix RHEL6 issue.
Looks like this is due to lack of language support against 2.7.
parent
bbd2ef62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/Stitch1DTest.py
+4
-4
4 additions, 4 deletions
...nInterface/test/python/plugins/algorithms/Stitch1DTest.py
with
4 additions
and
4 deletions
Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/Stitch1DTest.py
+
4
−
4
View file @
c8a39322
...
@@ -104,8 +104,8 @@ class Stitch1DTest(unittest.TestCase):
...
@@ -104,8 +104,8 @@ class Stitch1DTest(unittest.TestCase):
step_size
=
out_x_values
[
1
]
-
out_x_values
[
0
]
step_size
=
out_x_values
[
1
]
-
out_x_values
[
0
]
self
.
assertEqual
(
x_min
,
-
1
)
self
.
assertEqual
(
x_min
,
-
1
)
self
.
assertAlmostEqual
(
x_max
-
demanded_step_size
,
1.4
,
delta
=
1e-
6
)
self
.
assertAlmostEqual
(
x_max
-
demanded_step_size
,
1.4
,
places
=
6
)
self
.
assertAlmostEqual
(
step_size
,
demanded_step_size
,
delta
=
1e-
6
)
self
.
assertAlmostEqual
(
step_size
,
demanded_step_size
,
places
=
6
)
DeleteWorkspace
(
stitched
)
DeleteWorkspace
(
stitched
)
DeleteWorkspace
(
ws1
)
DeleteWorkspace
(
ws1
)
...
@@ -130,8 +130,8 @@ class Stitch1DTest(unittest.TestCase):
...
@@ -130,8 +130,8 @@ class Stitch1DTest(unittest.TestCase):
print
start_overlap_determined
,
end_overlap_determined
print
start_overlap_determined
,
end_overlap_determined
self
.
assertAlmostEqual
(
start_overlap_determined
,
-
0.4
,
delta
=
1e-
9
)
self
.
assertAlmostEqual
(
start_overlap_determined
,
-
0.4
,
places
=
9
)
self
.
assertAlmostEqual
(
end_overlap_determined
,
0.2
,
delta
=
1e-
9
)
self
.
assertAlmostEqual
(
end_overlap_determined
,
0.2
,
places
=
9
)
def
test_stitching_scale_right
(
self
):
def
test_stitching_scale_right
(
self
):
stitched
=
Stitch1D
(
LHSWorkspace
=
self
.
b
,
RHSWorkspace
=
self
.
a
,
StartOverlap
=-
0.4
,
EndOverlap
=
0.4
,
Params
=
'
0.2
'
)
stitched
=
Stitch1D
(
LHSWorkspace
=
self
.
b
,
RHSWorkspace
=
self
.
a
,
StartOverlap
=-
0.4
,
EndOverlap
=
0.4
,
Params
=
'
0.2
'
)
...
...
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