Skip to content

Commit

Permalink
fix sample_index_to_stft_frame_index doctest on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JanekEbb committed Dec 31, 2023
1 parent 3e4188a commit 108ed65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paderbox/transform/module_stft.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def sample_index_to_stft_frame_index(sample, window_length, shift, fading='full'
>>> [sample_index_to_stft_frame_index(i, 8, 1, fading=None) for i in range(12)]
[0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8]
>>> sample_index_to_stft_frame_index(np.arange(12, dtype=int), 8, 1, fading=None)
>>> sample_index_to_stft_frame_index(np.arange(12, dtype=np.int64), 8, 1, fading=None)
array([0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8])
>>> [sample_index_to_stft_frame_index(i, 8, 2, fading=None) for i in range(10)]
[0, 0, 0, 0, 0, 1, 1, 2, 2, 3]
Expand Down

0 comments on commit 108ed65

Please sign in to comment.