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
eeba52c2
Commit
eeba52c2
authored
9 years ago
by
Doucet, Mathieu
Browse files
Options
Downloads
Patches
Plain Diff
Re #14104 Fix pylon warnings
parent
a157f453
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/LRReflectivityOutput.py
+5
-5
5 additions, 5 deletions
...ythonInterface/plugins/algorithms/LRReflectivityOutput.py
with
5 additions
and
5 deletions
Framework/PythonInterface/plugins/algorithms/LRReflectivityOutput.py
+
5
−
5
View file @
eeba52c2
# pylint: disable=no-init,invalid-name
# pylint: disable=no-init,invalid-name
,bare-except
import
math
import
time
import
mantid
...
...
@@ -48,7 +48,6 @@ class LRReflectivityOutput(PythonAlgorithm):
Check that all the workspaces are on an absolute scale.
@param workspace_list: list of workspaces to put together
"""
# TODO: Store scaling factors and clocking correction in header
scaling_cutoff
=
self
.
getProperty
(
"
ScalingWavelengthCutoff
"
)
normalization_available
=
True
...
...
@@ -61,7 +60,7 @@ class LRReflectivityOutput(PythonAlgorithm):
normalization_available
=
wl
>
scaling_cutoff
logger
.
notice
(
"
%s: no normalization for wl=%s
"
%
(
ws
,
str
(
wl
)))
except
:
logger
.
notice
(
"
%s: could not find LambdaRequest
"
%
ws
)
logger
.
notice
(
"
%s: could not find LambdaRequest
"
%
ws
)
normalization_available
=
False
else
:
logger
.
notice
(
"
%s: normalization found
"
%
ws
)
...
...
@@ -70,6 +69,7 @@ class LRReflectivityOutput(PythonAlgorithm):
normalization_available
=
False
return
normalization_available
#pylint: disable=too-many-locals,too-many-branches
def
average_points_for_single_q
(
self
,
scaled_ws_list
):
"""
Take the point with the smalled error when multiple points are
...
...
@@ -118,7 +118,7 @@ class LRReflectivityOutput(PythonAlgorithm):
# Skip first point and last one
points_to_skip
=
1
for
i
in
range
(
1
,
len
(
scaled_ws_list
)):
for
i
in
range
(
1
,
len
(
scaled_ws_list
)):
skipped_points
=
0
distribution_started
=
False
...
...
@@ -209,7 +209,7 @@ class LRReflectivityOutput(PythonAlgorithm):
for
i
in
range
(
len
(
data_x
)):
# Skip point where the error is much larger than the reflectivity value
if
(
data_y
[
i
]
>
data_e
[
i
]
/
100.0
)
:
if
data_y
[
i
]
>
data_e
[
i
]
/
100.0
:
content
+=
str
(
data_x
[
i
])
content
+=
'
'
+
str
(
data_y
[
i
])
content
+=
'
'
+
str
(
data_e
[
i
])
...
...
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