Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] failing dev from libpysal.graph --> numpy.float_ #214

Closed
jGaboardi opened this issue Jun 8, 2024 · 0 comments · Fixed by pysal/libpysal#719
Closed

[CI] failing dev from libpysal.graph --> numpy.float_ #214

jGaboardi opened this issue Jun 8, 2024 · 0 comments · Fixed by pysal/libpysal#719
Assignees
Labels

Comments

@jGaboardi
Copy link
Member

DEV CI failing with AttributeError: np.float_was removed in the NumPy 2.0 release. Usenp.float64 instead. from within libpysal/graph/base.py

UNEXPECTED EXCEPTION: AttributeError('`np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.')
Traceback (most recent call last):
  File "/home/runner/micromamba/envs/test/lib/python3.11/doctest.py", line 1355, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest mapclassify.classifiers.MapClassifier.plot[0]>", line 1, in <module>
  File "/home/runner/micromamba/envs/test/lib/python3.11/site-packages/libpysal/__init__.py", line 27, in <module>
    from . import cg, examples, graph, io, weights
  File "/home/runner/micromamba/envs/test/lib/python3.11/site-packages/libpysal/graph/__init__.py", line 1, in <module>
    from .base import Graph, read_parquet, read_gal, read_gwt  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/test/lib/python3.11/site-packages/libpysal/graph/base.py", line 56, in <module>
    class Graph(SetOpsMixin):
  File "/home/runner/micromamba/envs/test/lib/python3.11/site-packages/libpysal/graph/base.py", line 2023, in Graph
    y: np.typing.NDArray[np.float_] | pd.Series,
                         ^^^^^^^^^
  File "/home/runner/micromamba/envs/test/lib/python3.11/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
/home/runner/work/mapclassify/mapclassify/mapclassify/classifiers.py:1075: UnexpectedException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants