We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6980b7 commit 5ad9283Copy full SHA for 5ad9283
1 file changed
devito/types/basic.py
@@ -429,7 +429,12 @@ def _eval_is_real(self):
429
return not self.is_imaginary
430
431
def _eval_is_imaginary(self):
432
- return np.iscomplexobj(self.dtype(0))
+ try:
433
+ return np.iscomplexobj(self.dtype(0))
434
+ except TypeError:
435
+ # Non-callabale dtype, likely non-numpy
436
+ # Assuming it's not complex
437
+ return False
438
439
@property
440
def indices(self):
0 commit comments