Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
60fa5917
Commit
60fa5917
authored
Mar 20, 2020
by
Nick Draper
Browse files
flake 8 whitespace changes
parent
9ac42d37
Changes
10
Hide whitespace changes
Inline
Side-by-side
dev-docs/source/MVPTutorial/CalculatorExample/Model.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
Model
(
object
):
def
__init__
(
self
):
self
.
result
=
0
...
...
dev-docs/source/MVPTutorial/CalculatorExample/Presenter.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
Presenter
(
object
):
# Pass the view and model into the presenter
def
__init__
(
self
,
demo_view
,
demo_model
):
...
...
scripts/Inelastic/Direct/detpackmap.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
def
sequoia
(
name
):
name
=
name
.
strip
().
upper
()
packs
=
([
'B{}'
.
format
(
i
)
for
i
in
range
(
1
,
37
+
1
)]
...
...
scripts/MultiPlotting/AxisChanger/axis_changer_presenter.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
AxisChangerPresenter
(
object
):
def
__init__
(
self
,
view
):
...
...
scripts/SANS/sans/common/Containers/FloatRange.py
View file @
60fa5917
...
...
@@ -5,6 +5,8 @@
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
# TODO convert back to NamedTuple with defined types in Python 3
class
FloatRange
(
object
):
start
=
None
# : float
end
=
None
#: float
...
...
scripts/SANS/sans/common/Containers/MonitorID.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
MonitorID
(
object
):
def
__init__
(
self
,
monitor_spec_num
,
monitor_name
=
None
):
self
.
monitor_name
=
monitor_name
...
...
scripts/SANS/sans/common/Containers/Position.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
XYPosition
(
object
):
X
=
None
# Float
Y
=
None
# Float
...
...
scripts/SANS/sans/gui_logic/models/RunSelectionModel.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
RunSelectionModel
(
object
):
def
__init__
(
self
,
on_change
,
runs
=
None
):
self
.
_on_change
=
on_change
...
...
scripts/SANS/sans/gui_logic/models/run_file.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
SummableRunFile
(
object
):
def
__init__
(
self
,
path
,
run_number
,
is_event_mode
):
assert
(
type
(
path
)
==
str
)
...
...
scripts/SANS/sans/state/StateRunDataBuilder.py
View file @
60fa5917
...
...
@@ -4,6 +4,8 @@
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
class
StateRunDataBuilder
(
object
):
def
__init__
(
self
,
file_information
):
self
.
_file_information
=
file_information
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment