Skip to content

Commit

Permalink
test_transform: showing only the name of data type on each image
Browse files Browse the repository at this point in the history
Attempt to fix Test failures with test_transform on NixOS #20
  • Loading branch information
PierreRaybaut committed Oct 1, 2024
1 parent ea1787c commit 54c84d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotpy/tests/items/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54c84d4

Please sign in to comment.