Skip to content

Commit

Permalink
et
Browse files Browse the repository at this point in the history
  • Loading branch information
OverLordGoldDragon committed Jan 11, 2021
1 parent 83a4122 commit bf55f98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ssqueezepy/_stft.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def stft(x, window=None, n_fft=None, win_len=None, hop_len=1, dt=1,
modulated=True, padtype='reflect', derivative=False):
padtype='reflect', modulated=True, derivative=False):
"""Compute the short-time Fourier transform and modified short-time
Fourier transform from [1].
Expand Down
3 changes: 0 additions & 3 deletions ssqueezepy/ssqueezing.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ def _compute_associated_frequencies(dt, na, N, transform, ssq_scaletype,
if transform == 'cwt':
ssq_freqs = np.linspace(fm, fM, na)
elif transform == 'stft':
# ??? seems to be 0 to f_sampling/2, but why use N?
# what about fm and fM?
ssq_freqs = np.linspace(0, .5, na) / dt
# ssq_freqs = ssq_freqs[:na // 2]
return ssq_freqs

def _process_args(w, fs, t, N, transform, squeezing, scales, mapkind,
Expand Down
3 changes: 1 addition & 2 deletions tests/all_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def decor(*args, **kw):
from ssqueezepy.wavelets import time_resolution, _xifn
from ssqueezepy.wavelets import _aifftshift_even, _afftshift_even
from ssqueezepy.utils import cwt_scalebounds, buffer, est_riskshrink_thresh
from ssqueezepy.utils import window_norm, window_resolution, window_area
from ssqueezepy.utils import window_resolution, window_area
from ssqueezepy._cwt import _icwt_norm
from ssqueezepy._stft import _get_window
from ssqueezepy.visuals import hist, plot, scat, imshow
Expand Down Expand Up @@ -184,7 +184,6 @@ def _pass_on_error(fn, *args, **kw):
def test_windows():
window = _get_window(None, win_len=100, n_fft=128)

window_norm(window)
window_area(window, time=True, frequency=True)
window_resolution(window)

Expand Down

0 comments on commit bf55f98

Please sign in to comment.