From 4f17ed14a5b88cbff6ad17d81f86851a4b980692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 16 Jun 2024 12:01:07 +0200 Subject: [PATCH] BUG: ensure type safety in a call to np.logspace --- yt/frontends/art/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt/frontends/art/io.py b/yt/frontends/art/io.py index 137cd096b0..1047928ce7 100644 --- a/yt/frontends/art/io.py +++ b/yt/frontends/art/io.py @@ -635,7 +635,7 @@ def b2t(tb, n=1e2, logger=None, **kwargs): return a2t(b2a(tb)) if len(tb) < n: n = len(tb) - tbs = -1.0 * np.logspace(np.log10(-tb.min()), np.log10(-tb.max()), n) + tbs = -1.0 * np.logspace(np.log10(-tb.min()), np.log10(-tb.max()), int(n)) ages = [] for i, tbi in enumerate(tbs): ages += (a2t(b2a(tbi)),)