Skip to content

Commit

Permalink
Merge pull request #593 from OP2/complex_dtype_fix
Browse files Browse the repository at this point in the history
complex: fix default dtype in _EmptyDataMixin
  • Loading branch information
dham authored Aug 24, 2020
2 parents da66688 + d372d79 commit 9608d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9608d18

Please sign in to comment.