Skip to content

Conversation

peterbell10
Copy link
Member

Reference issue

Ref gh-8923

What does this implement/fix?

This expands the KDTree interface to expose all of the cKDTree functionality. I've also merged the two classes documentation together so they're almost identical, except for deprecation and versionadded messages.

Most of the tests are now parametrized on the tree type as well, so the exact same tests are run forKDTree and cKDTree with minimal code duplication. This is done through pytest fixtures for functional tests and with a special class decorator for class-style tests.

@peterbell10 peterbell10 added enhancement A new feature or improvement scipy.spatial maintenance Items related to regular maintenance tasks labels Sep 14, 2020
@larsoner larsoner added this to the 1.6.0 milestone Nov 9, 2020
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

Looks like a pretty straightforward extension, +1 for merge for 1.6.0.

@sturlamolden did you want to look?

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM too. Fixed one merge conflict with test fixtures, CI failures are unrelated - merging. Thanks @peterbell10!

@rgommers rgommers merged commit 47b132c into scipy:master Nov 15, 2020
@rgommers
Copy link
Member

Release note was already present, so all good to go.

@peterbell10 peterbell10 deleted the kdtree-features branch November 15, 2020 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement maintenance Items related to regular maintenance tasks scipy.spatial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants