diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ece5581..65eed24 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,10 +6,16 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + os: [ubuntu-latest] + include: + - os: ubuntu-22.04 + python-version: '3.7' + - os: macos-latest + python-version: '3.12' steps: - uses: actions/checkout@v2 @@ -27,8 +33,12 @@ jobs: pip install numpy pyzmq # pymatbridge needs numpy and pyzmq preinstalled (i.e. does not work to list in setup.py) # Install of current version of pymatbridge on pypi does not work, using the git-repository instead pip install git+https://github.com/arokem/python-matlab-bridge.git@master - - + if: matrix.os != 'macos-latest' + - name: Install macos dependencies + run: | + brew install libsndfile + pip install git+https://github.com/arokem/python-matlab-bridge.git@master + if: matrix.os == 'macos-latest' - name: Install nara_wpe run: | pip install -e .[test] diff --git a/nara_wpe/utils.py b/nara_wpe/utils.py index 01e164d..ba1777f 100644 --- a/nara_wpe/utils.py +++ b/nara_wpe/utils.py @@ -450,7 +450,7 @@ def istft_single_channel(stft_signal, size=1024, shift=256, if disable_sythesis_window: window = np.ones_like(window) - time_signal = scipy.zeros(stft_signal.shape[0] * shift + size - shift) + time_signal = np.zeros(stft_signal.shape[0] * shift + size - shift) for j, i in enumerate(range(0, len(time_signal) - size + shift, shift)): time_signal[i:i + size] += window * np.real(irfft(stft_signal[j]))