Skip to content

Commit 19f6e22

Browse files
committed
Minor dtype fix
1 parent 75e6b1c commit 19f6e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dedalus/core/operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ def subproblem_matrix(self, subproblem):
21362136
# Weight by spin (spinorder: -, +)
21372137
factors[self.index] = np.array([[-1, 0], [0, 1]])
21382138
# Multiply by 1j
2139-
if np.iscomplexobj(self.dtype()):
2139+
if is_complex_dtype(self.dtype):
21402140
factors[self.index] = 1j * factors[self.index]
21412141
else:
21422142
azimuth_index = len(self.tensorsig) + self.azimuth_axis

0 commit comments

Comments
 (0)