Skip to content

Commit c928e90

Browse files
committed
Use complex builtin
1 parent 3c84dff commit c928e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: smithers/signal/higher_order_spectrum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def ncoherence(self, window_fraction=1/16, n=2):
110110
reduced_window_size = int(self.window_size * window_fraction)
111111
ranges = [reduced_window_size] * n
112112

113-
term = np.zeros(shape=self.n_averages, dtype=np.complex)
113+
term = np.zeros(shape=self.n_averages, dtype=complex)
114114
coherence = np.zeros(shape=ranges)
115115

116116
Y = self.windowed_fft[:self.n_averages]

0 commit comments

Comments
 (0)