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
36a60ddf
Unverified
Commit
36a60ddf
authored
6 years ago
by
Martyn Gigg
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #22848 from mantidproject/in16_reduction_relax_error
IN16B QENS: relax too strict error
parents
1b98e8e0
cbef25ae
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
Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/IndirectILLReductionQENS.py
+1
-1
1 addition, 1 deletion
...algorithms/WorkflowAlgorithms/IndirectILLReductionQENS.py
with
1 addition
and
1 deletion
Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/IndirectILLReductionQENS.py
+
1
−
1
View file @
36a60ddf
...
@@ -271,7 +271,7 @@ class IndirectILLReductionQENS(PythonAlgorithm):
...
@@ -271,7 +271,7 @@ class IndirectILLReductionQENS(PythonAlgorithm):
for
item
in
mtd
[
tmp_int
]:
for
item
in
mtd
[
tmp_int
]:
for
index
in
range
(
item
.
getNumberHistograms
()):
for
index
in
range
(
item
.
getNumberHistograms
()):
if
item
.
readY
(
index
)[
0
]
<=
0
:
if
item
.
readY
(
index
)[
0
]
<=
0
:
raise
RuntimeError
(
'
Negative or 0 integral in spectrum #{0} {1}
'
.
format
(
index
,
message
))
self
.
log
().
warning
(
'
Negative or 0 integral in spectrum #{0} {1}
'
.
format
(
index
,
message
))
DeleteWorkspace
(
tmp_int
)
DeleteWorkspace
(
tmp_int
)
...
...
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