Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
5686ea06
Commit
5686ea06
authored
Mar 10, 2021
by
Jose Borreguero
Browse files
Refs #30737 remove temporary writing to file
Signed-off-by:
Jose Borreguero
<
borreguero@gmail.com
>
parent
04e11a46
Changes
1
Show whitespace changes
Inline
Side-by-side
Testing/SystemTests/tests/framework/IntegrateEllipsoidsTest.py
View file @
5686ea06
...
...
@@ -18,7 +18,6 @@ class IntegrateEllipsoidsTest(MantidSystemTest):
def
runTest
(
self
):
r
"""Calculate intensities for a set of peaks. The first and secon peaks in the
table corresponds to satellite peak HKL=(1.5, 1.5,0) and main peak (1,1,0)"""
open
(
'/tmp/junk1.log'
,
'w'
).
write
(
f
'Intensities: 0, 0'
)
LoadNexus
(
Filename
=
'TOPAZ_39037_bank29.nxs'
,
OutputWorkspace
=
'events'
)
LoadNexus
(
Filename
=
'TOPAZ_39037_peaks_short.nxs'
,
OutputWorkspace
=
'peaks_input'
)
IntegrateEllipsoids
(
InputWorkspace
=
'events'
,
...
...
@@ -36,6 +35,4 @@ class IntegrateEllipsoidsTest(MantidSystemTest):
table
=
mtd
[
'peaks_output'
]
# intensities for the first two peaks
intensities
=
table
.
column
(
'Intens'
)[
0
:
2
]
open
(
'/tmp/junk2.log'
,
'w'
).
write
(
f
'Intensities:
{
intensities
}
'
)
assert_allclose
(
table
.
column
(
'Intens'
)[
0
:
2
],
[
938
,
13936
],
atol
=
1.0
)
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