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

NumPy 2.0 AttributeError #65

Closed
RDWimmers opened this issue Aug 12, 2024 · 2 comments
Closed

NumPy 2.0 AttributeError #65

RDWimmers opened this issue Aug 12, 2024 · 2 comments

Comments

@RDWimmers
Copy link

RDWimmers commented Aug 12, 2024

set upper limit for NumPy dependency or update code base to support NumPy 2.0

/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/ttim/__init__.py:13: in <module>
    from .linedoublet import LeakyLineDoublet, LeakyLineDoubletString
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/ttim/linedoublet.py:6: in <module>
    from . import besselnumba
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/ttim/besselnumba.py:25: in <module>
    nrange = np.arange(21, dtype=np.float_)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/numpy/__init__.py:[39]
E   AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
@mbakker7
Copy link
Owner

Thanks for the report. We are working on Numpy 2.0 compatibility. Until that update, stick with Numpy < 2.0

@mbakker7
Copy link
Owner

mbakker7 commented Oct 5, 2024

Fixed with release 0.6.7

@mbakker7 mbakker7 closed this as completed Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants