Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_BEFORE_BUILD: |
pip install --upgrade pip
pip install "numpy>=1.26.3,<2.0" "cython>=3.0.8,<4.0"
pip install "numpy>=2.0,<3.0" "cython>=3.0.10,<4.0"
CIBW_BUILD_VERBOSITY: 1

- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_BEFORE_BUILD: |
pip install --upgrade pip
pip install "numpy>=1.26.3,<2.0" "cython>=3.0.8,<4.0"
pip install "numpy>=2.0,<3.0" "cython>=3.0.10,<4.0"
CIBW_BUILD_VERBOSITY: 1

- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion matchmaker/utils/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def discrete_normal_density(x, mu, sigma2, grid, log=False):
# evaluate the normal density on the grid
prob = normal_density(grid, mu, sigma2)
# normalize to have a discrete distribution
out = normal_density(x, mu, sigma2) * np.in1d(x, grid) / np.sum(prob)
out = normal_density(x, mu, sigma2) * np.isin(x, grid) / np.sum(prob)
if log:
out = np.log(out)
return out
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=80.0,<81", "Cython==3.0.8", "numpy>=1.26.3,<2.0", "build", "cibuildwheel"]
requires = ["setuptools>=80.0,<81", "Cython>=3.0.10,<4.0", "numpy>=2.0,<3.0", "build", "cibuildwheel"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -29,8 +29,8 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"cython>=3.0.8",
"numpy>=1.26.3,<2.0",
"cython>=3.0.10",
"numpy>=1.26.3",
"scipy>=1.11.4",
"librosa>=0.10.1",
"pandas>=2.0.0",
Expand Down
Loading