From c9fefca7234a3db82387e6a88db76a706f853cd6 Mon Sep 17 00:00:00 2001 From: Matthew Rocklin Date: Tue, 3 Jan 2023 08:13:26 -0800 Subject: [PATCH] Avoid int32 in dashboard Fixes https://github.com/dask/distributed/issues/7439 --- distributed/dashboard/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distributed/dashboard/utils.py b/distributed/dashboard/utils.py index 179f1a0a821..78023d59f00 100644 --- a/distributed/dashboard/utils.py +++ b/distributed/dashboard/utils.py @@ -54,6 +54,8 @@ def update(source, data): for k, v in data.items(): if type(v) is not np.ndarray and isinstance(v[0], Number): d[k] = np.array(v) + if d[k].dtype == np.int32: # avoid int32 (Windows default) + d[k] = d[k].astype("int64") else: d[k] = v else: