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

Fix import triu #3548

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Fix import triu #3548

wants to merge 1 commit into from

Commits on Jul 18, 2024

  1. Fix import triu

    I'm using scipy 1.13.1 and it works in manual fix. I found scipy in the documentation starting with version 1.12.0, but it appeared in the source code much earlier. The triu function has been moved from scipy.linalg to scipy.sparse. I changed the imports 
    ```try:
        from numpy import triu
    except ImportError:
        from scipy.linalg import triu``` 
    to ```from scipy.sparse import triu``` and it worked.
    Hoasker authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    5296b13 View commit details
    Browse the repository at this point in the history