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

Dense eigen decomposition of sparse matrices raises a DeprecationWarning on SciPy 1.11 #2093

Closed
hodgestar opened this issue Feb 13, 2023 · 2 comments
Milestone

Comments

@hodgestar
Copy link
Contributor

Bug Description

SciPy 1.11 raises the following two deprecation warnings during qutip-4.7.X test runs:

FAILED qutip/tests/test_sp_eigs.py::test_DenseHermValsVecs - DeprecationWarning: Keyword argument 'eigvals' is deprecated in favour of 'subset_by_index' keyword instead and will be removed in SciPy 1.12.0.
FAILED qutip/tests/test_sp_eigs.py::test_DenseValsOnly - DeprecationWarning: Keyword argument 'eigvals' is deprecated in favour of 'subset_by_index' keyword instead and will be removed in SciPy 1.12.0.
=========== 2 failed, 3250 passed, 12 skipped in 1792.40s (0:29:52) ============
```

### Code to Reproduce the Bug

```shell
pytest -W error qutip/tests/test_sp_eigs.py
```


### Code Output

```shell
FAILED qutip/tests/test_sp_eigs.py::test_DenseHermValsVecs - DeprecationWarning: Keyword argument 'eigvals' is deprecated in favour of 'subset_by_index' keyword instead and will be removed in SciPy 1.12.0.
FAILED qutip/tests/test_sp_eigs.py::test_DenseValsOnly - DeprecationWarning: Keyword argument 'eigvals' is deprecated in favour of 'subset_by_index' keyword instead and will be removed in SciPy 1.12.0.
```


### Expected Behaviour

Tests do not fail.

### Your Environment

```shell
QuTiP Version: 4.7.1
SciPy Version: 1.11
```


### Additional Context

_No response_
@hodgestar
Copy link
Contributor Author

Being fixed in #2081 (alongside the heterodyne stochastic solver bug).

@hodgestar
Copy link
Contributor Author

Fixed in #2081.

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

1 participant