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

module 'numpy' has no attribute 'complex'. #18

Open
Buantum opened this issue Aug 28, 2023 · 1 comment
Open

module 'numpy' has no attribute 'complex'. #18

Buantum opened this issue Aug 28, 2023 · 1 comment

Comments

@Buantum
Copy link

Buantum commented Aug 28, 2023

When I run the example code, I find there is a package-type errors for which numpy has np.complex was a deprecated alias for the builtin complex. However, when I try to install numpy<=1.20, there are many package conflicts. Maybe it would be a huge task to fix bugs...
Exception has occurred: AttributeError
module 'numpy' has no attribute 'complex'.
np.complex was a deprecated alias for the builtin complex. To avoid this error in existing code, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

@nwlambert
Copy link
Collaborator

thanks for the issue, i would say this repo has been superseded by our feel release within qutip, see https://github.com/qutip & https://qutip.org/docs/latest/guide/guide-heom.html and the tutorials in qutip-tutorials.

I would like to at least make this package stable, but maintaining 3 versions of the same code (bofin, bofin-fast, and qutip-bofin) is a bit unsustainable. if you find this version is important for your needs let us know, and we can look into it.

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