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
b4e6abba
Commit
b4e6abba
authored
9 years ago
by
Doucet, Mathieu
Browse files
Options
Downloads
Patches
Plain Diff
Re #15118 Fix pylint
parent
3f6d46ff
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
scripts/Interface/reduction_gui/reduction/reflectometer/refl_data_script.py
+9
-9
9 additions, 9 deletions
...reduction_gui/reduction/reflectometer/refl_data_script.py
with
9 additions
and
9 deletions
scripts/Interface/reduction_gui/reduction/reflectometer/refl_data_script.py
+
9
−
9
View file @
b4e6abba
#pylint: disable=R0902, W0221, W0621
"""
Classes for each reduction step. Those are kept separately
from the the interface class so that the HFIRReduction class could
be used independently of the interface implementation
"""
import
xml.dom.minidom
import
os
import
time
from
reduction_gui.reduction.scripter
import
BaseScriptElement
class
DataSets
(
BaseScriptElement
):
...
...
@@ -67,7 +66,7 @@ class DataSets(BaseScriptElement):
# how to treat overlap values
overlap_lowest_error
=
True
overlap_mean_value
=
False
# Primary fraction range
clocking_from
=
None
clocking_to
=
None
...
...
@@ -217,9 +216,9 @@ class DataSets(BaseScriptElement):
self
.
reset
()
dom
=
xml
.
dom
.
minidom
.
parseString
(
xml_str
)
self
.
from_xml_element
(
dom
)
element_list
=
dom
.
getElementsByTagName
(
"
RefLData
"
)
if
len
(
element_list
)
>
0
:
instrument_dom
=
element_list
[
0
]
#
element_list = dom.getElementsByTagName("RefLData")
#
if len(element_list)>0:
#
instrument_dom = element_list[0]
def
from_xml_element
(
self
,
instrument_dom
):
"""
...
...
@@ -310,7 +309,8 @@ class DataSets(BaseScriptElement):
# Angle offset
self
.
angle_offset
=
BaseScriptElement
.
getFloatElement
(
instrument_dom
,
"
angle_offset
"
,
default
=
DataSets
.
angle_offset
)
self
.
angle_offset_error
=
BaseScriptElement
.
getFloatElement
(
instrument_dom
,
"
angle_offset_error
"
,
default
=
DataSets
.
angle_offset_error
)
self
.
angle_offset_error
=
BaseScriptElement
.
getFloatElement
(
instrument_dom
,
"
angle_offset_error
"
,
default
=
DataSets
.
angle_offset_error
)
#scaling factor file and options
self
.
scaling_factor_file
=
BaseScriptElement
.
getStringElement
(
instrument_dom
,
"
scaling_factor_file
"
)
...
...
@@ -336,7 +336,7 @@ class DataSets(BaseScriptElement):
# Primary fraction
self
.
clocking_from
=
BaseScriptElement
.
getIntElement
(
instrument_dom
,
"
clocking_from
"
,
default
=
None
)
self
.
clocking_to
=
BaseScriptElement
.
getIntElement
(
instrument_dom
,
"
clocking_to
"
,
default
=
None
)
def
reset
(
self
):
"""
...
...
@@ -393,7 +393,7 @@ class DataSets(BaseScriptElement):
self
.
fourth_column_flag
=
DataSets
.
fourth_column_flag
self
.
fourth_column_dq0
=
DataSets
.
fourth_column_dq0
self
.
fourth_column_dq_over_q
=
DataSets
.
fourth_column_dq_over_q
# Primary fraction
self
.
clocking_from
=
DataSets
.
clocking_from
self
.
clocking_to
=
DataSets
.
clocking_to
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