From 54c84d469d4d44ba3820871c4c2dfbf0acf51247 Mon Sep 17 00:00:00 2001
From: Pierre Raybaut
Date: Tue, 1 Oct 2024 17:09:40 +0200
Subject: [PATCH] `test_transform`: showing only the name of data type on each
image Attempt to fix Test failures with test_transform on NixOS #20
---
plotpy/tests/items/test_transform.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plotpy/tests/items/test_transform.py b/plotpy/tests/items/test_transform.py
index d2e1a29d..24df26a3 100644
--- a/plotpy/tests/items/test_transform.py
+++ b/plotpy/tests/items/test_transform.py
@@ -119,7 +119,7 @@ def make_items(N: int) -> list[TrImageItem]:
s = float((info.max - info.min))
a1 = s * (data - m) / (M - m)
img = np.array(a1 + info.min, dtype)
- write_text_on_array(img, 0, 0, int(N / 15.0), str(dtype))
+ write_text_on_array(img, 0, 0, int(N / 15.0), dtype.__name__)
items.append(make.trimage(img, colormap="jet"))
nc = int(np.sqrt(len(items)) + 1.0)
maxy, x, y = 0, 0, 0