FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix a numpy 2 deprecation warning (dtype "a" code) by eriknw · Pull Request #556 · python-graphblas/python-graphblas · GitHub

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

Filter by extension

Filter by extension .py  (1) .sh  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 4 additions & 0 deletions graphblas/tests/test_dtype.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import graphblas as gb
from graphblas import core, dtypes
from graphblas.core import lib
from graphblas.core.utils import _NP2
from graphblas.dtypes import lookup_dtype

suitesparse = gb.backend == "suitesparse"
Expand Down Expand Up @@ -228,6 +229,9 @@ def test_dtype_to_from_string():
# See NEP 55 about StringDtype "T". Notably, this doesn't work:
# >>> np.dtype(np.dtype("T").str)
continue
if _NP2 and c == "a":
# Data type alias 'a' was deprecated in NumPy 2.0. Use the 'S' alias instead.
continue
try:
dtype = np.dtype(c)
types.append(dtype)
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_versions.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ conda search 'flake8-bugbear[channel=conda-forge]>=24.12.12'
conda search 'flake8-simplify[channel=conda-forge]>=0.21.0'
conda search 'numpy[channel=conda-forge]>=2.2.3'
conda search 'pandas[channel=conda-forge]>=2.2.3'
conda search 'scipy[channel=conda-forge]>=1.15.1'
conda search 'scipy[channel=conda-forge]>=1.15.2'
conda search 'networkx[channel=conda-forge]>=3.4.2'
conda search 'awkward[channel=conda-forge]>=2.7.4'
conda search 'sparse[channel=conda-forge]>=0.15.5'
Expand Down

Back | FazBrowse Home | New Git URL