From 74927d9622b8f95c1b73efd86d990d59e410f971 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 20 Jan 2020 16:05:07 +0100 Subject: [PATCH] np.prod(()) is 1.0 (float), casting is therefore needed --- python/damask/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/table.py b/python/damask/table.py index 8f2ccf591..62a2540f6 100644 --- a/python/damask/table.py +++ b/python/damask/table.py @@ -219,7 +219,7 @@ class Table(): self.__add_comment(label,data.shape[1:],info) self.shapes[label] = data.shape[1:] if len(data.shape) > 1 else (1,) - size = np.prod(data.shape[1:]) + size = np.prod(data.shape[1:],dtype=int) new = pd.DataFrame(data=data.reshape(-1,size), columns=[label]*size, )