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

MAINT: sparse: Remove defunct function extract_diagonal #14083

Merged
merged 1 commit into from
May 19, 2021

Conversation

WarrenWeckesser
Copy link
Member

The function has been

def extract_diagonal(A):
    raise NotImplementedError('use .diagonal() instead')

for more than 13 years. I think we can safely remove this now.

The function has been

    def extract_diagonal(A):
        raise NotImplementedError('use .diagonal() instead')

for more than 13 years.  I think we can safely remove this now.
@WarrenWeckesser WarrenWeckesser added scipy.sparse maintenance Items related to regular maintenance tasks labels May 18, 2021
Copy link
Member

@perimosocordiae perimosocordiae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. We should add an entry to the relnotes.

@WarrenWeckesser
Copy link
Member Author

We should add an entry to the relnotes.

I don't think we need that even. The function was not in __all__, so it wasn't a public function. I think we can view this as just removing old dead code.

@tylerjereddy tylerjereddy added this to the 1.7.0 milestone May 19, 2021
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In it goes, thanks Warren & CJ

@tylerjereddy tylerjereddy merged commit e451ab3 into scipy:master May 19, 2021
@WarrenWeckesser WarrenWeckesser deleted the remove-extract-diagonal branch June 16, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.sparse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants