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
d9cca1cd
Commit
d9cca1cd
authored
Jan 22, 2021
by
Richard Waite
Browse files
Fix flake8 errors/warnings
parent
1f07327b
Changes
2
Hide whitespace changes
Inline
Side-by-side
qt/python/mantidqt/widgets/sliceviewer/peaksviewer/representation/painter.py
View file @
d9cca1cd
...
...
@@ -24,7 +24,8 @@ class EllipticalShell(Patch):
"""
def
__str__
(
self
):
return
f
"EllipticalShell(center=
{
self
.
center
}
, width=
{
self
.
width
}
, height=
{
self
.
height
}
, frac_thick=
{
self
.
frac_thick
}
, angle=
{
self
.
angle
}
)"
return
f
"EllipticalShell(center=
{
self
.
center
}
, width=
{
self
.
width
}
, height=
{
self
.
height
}
, "
\
f
"frac_thick=
{
self
.
frac_thick
}
, angle=
{
self
.
angle
}
)"
def
__init__
(
self
,
center
,
width
,
height
,
frac_thick
,
angle
=
0.0
,
**
kwargs
):
"""
...
...
qt/python/mantidqt/widgets/sliceviewer/peaksviewer/representation/test/test_peaksviewer_representation_ellipsoid.py
View file @
d9cca1cd
...
...
@@ -185,7 +185,8 @@ class EllipsoidalIntergratedPeakRepresentationSliceEllipsoidTest(unittest.TestCa
c
=
1
zp
=
0
slice_transform
=
lambda
x
:
(
x
[
1
],
x
[
0
],
x
[
2
])
def
slice_transform
(
x
):
return
(
x
[
1
],
x
[
0
],
x
[
2
])
expected_slice_origin
=
(
0
,
0
,
0
)
expected_major_radius
=
2
...
...
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