Skip to content

Commit fb4a2b2

Browse files
committed
Rename test for image update functionality with dynamic data
1 parent eea52b1 commit fb4a2b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plotpy/tests/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def gen_xyimage(N: int = 1000) -> tuple[np.ndarray, np.ndarray, np.ndarray]:
156156
return x, (x + 5) ** 0.6, data
157157

158158

159-
def gen_2d_gaussian(size, dtype, x0=0, y0=0, mu=0.0, sigma=2.0, amp=None):
159+
def gen_2d_gaussian(size, dtype, x0=0, y0=0, mu=0.0, sigma=2.0, amp=None) -> np.ndarray:
160160
"""Creating 2D Gaussian (-10 <= x <= 10 and -10 <= y <= 10)"""
161161
xydata = np.linspace(-10, 10, size)
162162
x, y = np.meshgrid(xydata, xydata)

plotpy/tests/features/test_image_data_update.py renamed to plotpy/tests/features/test_data_update_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# (see plotpy/LICENSE for details)
55

66
"""
7-
Testing image update
8-
====================
7+
Testing image show with data update
8+
===================================
99
1010
The purpose of this test is to implement a simple use case where an image is
1111
updated in a loop. The image is created with random data and the pixel values

0 commit comments

Comments
 (0)