Skip to content

Commit

Permalink
Update syncsweptsine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SiggiGue authored Aug 15, 2022
1 parent bf2100e commit d029dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncsweptsine.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ def from_sweeps(cls, syncsweep, measuredsweep, fftlen=None, regularize=1e-6):
reguspec = invert_spectrum_reg(rinvspec*sweepspec, beta=regularize)
rinvspec[1:] = rinvspec[1:]*reguspec[1:]
else:
rspec /= syncsweep.samplerate
rspec /= syncsweep.samplerate
return cls.from_spectra(
rspec=rspec,
rinvspec=rinvspec,
Expand Down Expand Up @@ -915,7 +915,7 @@ class FrfFilterKernel(object):
"""
def __init__(self, freq, frf, ir=None):
if len(freq) != len(frf):
if len(freq) != len(frf):
raise ValueError('`freq` and `frf` must have the same length, not ', len(freq), len(frf))
self._frf = frf
self._freq = freq
Expand Down

0 comments on commit d029dff

Please sign in to comment.