Skip to content

Commit

Permalink
Require audmath>=1.4.1 to support numpy 2.0 (#175)
Browse files Browse the repository at this point in the history
* Require audmath>=1.4.1 to support numpy 2.0

* Require numpy<2.0.0 for docs

* DOC: require soxr>=0.4.0b1

* Remove support for Python 3.8
  • Loading branch information
hagenw authored Jun 19, 2024
1 parent f094aaf commit 9b6b1d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.9', '3.10', '3.11' ]

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions audinterface/core/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Process:
Examples:
>>> def mean(signal, sampling_rate):
... return signal.mean()
... return float(signal.mean())
>>> interface = Process(process_func=mean)
>>> signal = np.array([1.0, 2.0, 3.0])
>>> interface(signal, sampling_rate=3)
Expand All @@ -133,11 +133,11 @@ class Process:
>>> interface.process_index(index, root=db.root)
file start end
wav/03a01Fa.wav 0 days 0 days 00:00:01.898250 -0.000311
dtype: float32
dtype: float64
>>> interface.process_index(index, root=db.root, preserve_index=True)
file
wav/03a01Fa.wav -0.000311
dtype: float32
dtype: float64
>>> # Apply interface with a sliding window
>>> interface = Process(
... process_func=mean,
Expand All @@ -148,7 +148,7 @@ class Process:
file start end
wav/03a01Fa.wav 0 days 00:00:00 0 days 00:00:01 -0.000329
0 days 00:00:00.500000 0 days 00:00:01.500000 -0.000285
dtype: float32
dtype: float64
""" # noqa: E501

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ipykernel
jupyter-sphinx
librosa
pyarrow
soxr >=0.4.0b1 # for numpy 2, https://github.com/dofuuz/python-soxr/issues/28
sphinx
sphinx-apipages >=0.1.2
sphinx-audeering-theme >=1.2.1
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering',
]
requires-python = '>=3.8'
requires-python = '>=3.9'
dependencies = [
'audeer >=1.18.0',
'audformat >=1.0.1,<2.0.0',
'audiofile >=1.3.0',
'audmath >=1.3.0',
'audmath >=1.4.1',
'audresample >=1.1.0,<2.0.0',
]
# Get version dynamically from git
Expand Down

0 comments on commit 9b6b1d8

Please sign in to comment.