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
1b83b370
Commit
1b83b370
authored
Feb 24, 2021
by
Srikanth Ravipati
Committed by
Peterson, Peter
Mar 10, 2021
Browse files
Set and unset ISIS facility
parent
37bf9cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/test/python/mantid/plots/datafunctionsTest.py
View file @
1b83b370
...
...
@@ -877,9 +877,11 @@ class DataFunctionsTest(unittest.TestCase):
self
.
assertTrue
(
isinstance
(
bin_indices
,
range
))
def
test_get_bin_indices_returns_a_numpy_ndarray_with_monitors
(
self
):
config
.
setFacility
(
"ISIS"
)
ws
=
LoadRaw
(
"GEM40979"
,
SpectrumMin
=
1
,
SpectrumMax
=
102
)
bin_indices
=
funcs
.
get_bin_indices
(
ws
)
self
.
assertTrue
(
isinstance
(
bin_indices
,
np
.
ndarray
))
config
.
setFacility
(
"NONE"
)
if
__name__
==
'__main__'
:
...
...
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