Skip to content

Commit

Permalink
Update wave_reader.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Nov 4, 2024
1 parent 77fd47a commit 40bfe08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wave_reader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- run: pip install scipy
- run: pip show scipy
- shell: python
run: |
import wave
from importlib.util import find_spec
from pathlib import Path
scipy_path = Path(find_spec("scipy").submodule_search_locations[0])
print(f"{scipy_path = }")
wave_filepath = scipy_path / "io/tests/data/test-8000Hz-be-3ch-5S-24bit.wav"
print(f"{wave_filepath = } {wave_filepath.exists() = }")
with wave.open(str(wave_filepath)):
# --> wave.Error: file does not start with RIFF id
# scipy_path / "io/tests/data/test-8000Hz-be-3ch-5S-24bit.wav" generates the same error.
pass

0 comments on commit 40bfe08

Please sign in to comment.