Skip to content

Commit

Permalink
fix(delay): sym_pos argument is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs65 committed Dec 21, 2023
1 parent 8e49017 commit 3ce8f3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions draco/analysis/delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def _evaluate(self, data_view, weight_view, out_cont):
Returns
-------
out_cont : `contaiers.DelayTransform` or `containers.DelaySpectrum`
out_cont : `containers.DelayTransform` or `containers.DelaySpectrum`
Output delay spectrum or delay power spectrum.
"""
nbase = out_cont.spectrum.global_shape[0]
Expand Down Expand Up @@ -1239,7 +1239,7 @@ def _draw_signal_sample_f(S):
# then doing a matrix solve
y = np.dot(FTNih, data + w2) + Si[:, np.newaxis] ** 0.5 * w1

return la.solve(Ci, y, sym_pos=True)
return la.solve(Ci, y, assume_a="pos")

def _draw_signal_sample_t(S):
# This method is fastest if the number of delays is larger than the number of
Expand Down Expand Up @@ -1268,7 +1268,7 @@ def _draw_signal_sample_t(S):
# Perform the solve step (rather than explicitly using the inverse)
y = data + w2 - np.dot(R, w1)
Ci = np.identity(2 * Ni.shape[0]) + np.dot(R, Rt)
x = la.solve(Ci, y, sym_pos=True)
x = la.solve(Ci, y, assume_a="pos")

return Sh[:, np.newaxis] * (np.dot(Rt, x) + w1)

Expand Down Expand Up @@ -1564,7 +1564,7 @@ def delay_spectrum_wiener_filter(

# Solve the linear equation for the Wiener-filtered spectrum, and transpose to
# [average_axis, delay]
y_spec = la.solve(Ci, y, sym_pos=True).T
y_spec = la.solve(Ci, y, assume_a="pos").T

if complex_timedomain:
y_spec = _alternating_real_to_complex(y_spec)
Expand Down

0 comments on commit 3ce8f3f

Please sign in to comment.