Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deltasigma/_infnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def infnorm(H):
dw = 2*np.pi/(N-1)
Hval = evalTF(H, np.exp(1j*w))
Hinf = np.max(np.abs(Hval))
wi = np.where(np.abs(Hval) == Hinf)[0]
wi = np.where(np.abs(Hval) == Hinf)
wi = wi[0][0]

# Home in using the scipy "fminbound" function.
# original MATLAB code:
Expand Down
4 changes: 2 additions & 2 deletions deltasigma/_simulateSNR.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ def simulateSNR(arg1, osr, amp=None, f0=0, nlev=2, f=None, k=13,
np.arange(Ntransient/2)))
if not quadrature:
tone = M*np.sin(2*np.pi*F/N*np.arange(N + Ntransient))
tone[:Ntransient/2] = tone[:Ntransient/2] * soft_start
tone[:Ntransient//2] = tone[:Ntransient//2] * soft_start
else:
tone = M*np.exp(2j*np.pi*F/N * np.arange(N + Ntransient))
tone[:Ntransient/2] = tone[:Ntransient/2] * soft_start
tone[:Ntransient//2] = tone[:Ntransient//2] * soft_start
if not quadrature_ntf:
tone = tone.reshape((1, -1))
tone = np.vstack((np.real(tone), np.imag(tone)))
Expand Down