Skip to content

Commit

Permalink
Fix asscalar issue
Browse files Browse the repository at this point in the history
Resolves #12
  • Loading branch information
mmcauliffe committed Aug 27, 2024
1 parent ad0cee8 commit 7011454
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,24 @@ concurrency:
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
build:
strategy:
matrix:
include:
- os: ubuntu-latest
label: linux-64
prefix: /usr/share/miniconda3/envs/my-env

#- os: macos-latest
# label: osx-64
# prefix: /Users/runner/miniconda3/envs/my-env

#- os: windows-latest
# label: win-64
# prefix: C:\Miniconda3\envs\my-env

name: ${{ matrix.label }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@main
Expand All @@ -36,18 +52,10 @@ jobs:
tar -xvzf praat.tar.gz
echo "praat=$(pwd)/praat_barren" >> $GITHUB_ENV
- name: Set up
run: |
conda activate conch
which python
pip install -e .
- name: Run tests
shell: bash -l {0}
run: |
conda activate conch
which python
pytest -x
pytest -x ./tests
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v3"
Expand Down
2 changes: 1 addition & 1 deletion conch/analysis/formants/lpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def lpc_formants(signal, sr, num_formants, max_freq, time_step,
continue
if f > max_freq - 50:
continue
formants.append((float(f), float(bw[j])))
formants.append((f.item(), bw[j].item()))
missing = num_formants - len(formants)
if missing:
formants += [(None, None)] * missing
Expand Down

0 comments on commit 7011454

Please sign in to comment.