From d372d79d44c38c1d2e5d57bdd51d9af542263764 Mon Sep 17 00:00:00 2001 From: ksagiyam Date: Thu, 20 Aug 2020 10:16:00 +0100 Subject: [PATCH] complex: fix default dtype in _EmptyDataMixin --- pyop2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyop2/base.py b/pyop2/base.py index 3ba66801a..234887344 100644 --- a/pyop2/base.py +++ b/pyop2/base.py @@ -1277,7 +1277,7 @@ class _EmptyDataMixin(object): """ def __init__(self, data, dtype, shape): if data is None: - self._dtype = np.dtype(dtype if dtype is not None else np.float64) + self._dtype = np.dtype(dtype if dtype is not None else ScalarType) else: self._numpy_data = verify_reshape(data, dtype, shape, allow_none=True) self._dtype = self._data.dtype