Skip to content

Commit 54c84d4

Browse files
committed
test_transform: showing only the name of data type on each image
Attempt to fix Test failures with test_transform on NixOS #20
1 parent ea1787c commit 54c84d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotpy/tests/items/test_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def make_items(N: int) -> list[TrImageItem]:
119119
s = float((info.max - info.min))
120120
a1 = s * (data - m) / (M - m)
121121
img = np.array(a1 + info.min, dtype)
122-
write_text_on_array(img, 0, 0, int(N / 15.0), str(dtype))
122+
write_text_on_array(img, 0, 0, int(N / 15.0), dtype.__name__)
123123
items.append(make.trimage(img, colormap="jet"))
124124
nc = int(np.sqrt(len(items)) + 1.0)
125125
maxy, x, y = 0, 0, 0

0 commit comments

Comments
 (0)