Skip to content

Commit 9e6ef77

Browse files
committed
Enforce "No blank line after function docstring"
1 parent 888588c commit 9e6ef77

File tree

12 files changed

+11
-14
lines changed

12 files changed

+11
-14
lines changed

plotpy/builder/curvemarker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ def curve(
376376
377377
curve(x, y, marker='o', markerfacecolor='w')
378378
"""
379-
380379
if dx is not None or dy is not None:
381380
return self.error(
382381
x,

plotpy/builder/image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ def maskedxyimage(
463463
Returns:
464464
:py:class:`.MaskedXYImageItem` object
465465
"""
466-
467466
if isinstance(x, (list, tuple)):
468467
x = np.array(x)
469468
if isinstance(y, (list, tuple)):

plotpy/events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,6 @@ def get_zoom_param(
10961096
Returns two tuples of four floats each, representing the parameters used
10971097
by BasePlot.do_zoom_view.
10981098
"""
1099-
11001099
x, y = pos.x(), pos.y()
11011100
rect = plot.contentsRect()
11021101
w, h = rect.width(), rect.height()

plotpy/io.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ def _imwrite_pil(filename, arr):
366366
def _import_dcm():
367367
"""DICOM Import function (checking for required libraries):
368368
DICOM support requires library `pydicom`"""
369-
370369
logger = logging.getLogger("pydicom")
371370
logger.setLevel(logging.CRITICAL)
372371

plotpy/mathutils/colormap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def build_icon_from_cmap(
187187
the actual colormap width will be 14 (16 - 2 * 1). This was done to prevent
188188
interpolation on display.
189189
"""
190-
191190
padded_width = width - 2 * margin
192191
padded_height = height - 2 * margin
193192

plotpy/styles/curve.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def update_item(self, curve: CurveItem) -> None:
6868
Args:
6969
curve: instance of CurveItem to update
7070
"""
71-
7271
plot = curve.plot()
7372
if plot is not None:
7473
plot.blockSignals(True) # Avoid unwanted calls of update_param

plotpy/tests/items/test_curves_highdpi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
@pytest.mark.skip(reason="This test is not relevant for the automated test suite")
2121
def test_plot_highdpi():
2222
"""Curve plotting test with high DPI"""
23-
2423
# When setting the QT_SCALE_FACTOR to "2", performance is degraded, due to the
2524
# increased number of points to be drawn. As a workaround, we use the downsampling
2625
# feature to reduce the number of points to be drawn.

plotpy/tests/unit/test_io.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def compute_image(N=1000, M=1000):
2929

3030
def test_imwrite_png(tmpdir):
3131
"""Test writing of a png file"""
32-
3332
# write a random image
3433
dest = tmpdir / "out.png"
3534
data = compute_image(1000, 500)
@@ -109,7 +108,6 @@ def test_imread_dcm():
109108

110109
def test_imread_txt(tmpdir):
111110
"""Test reading of txt file"""
112-
113111
img = tmpdir / "img.txt"
114112
content = "\n".join(" ".join(f"{n:d}" for n in range(255)) for _ in range(50))
115113
img.write_text(content, "ascii")

plotpy/tests/unit/test_manipulate_selection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def test_move_with_mouse(img_item_factory: Callable[[], BaseImageItem] | None):
123123
Arg:
124124
img_item_factory: image item factory function. Defaults to None.
125125
"""
126-
127126
with qt_app_context(exec_loop=False):
128127
img_item = None if img_item_factory is None else img_item_factory()
129128
win, tool, plot, img_item = _setup_plot(img_item)

plotpy/tools/cursor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def create_shape(self):
9494
9595
:return:
9696
"""
97-
9897
return XRangeSelection(0, 0)
9998

10099

0 commit comments

Comments
 (0)