Skip to content

Conversation

@SimoneMartino98
Copy link
Collaborator

Hi all;

Here we solve #137

This highlighted a lack in the testing phase that neglects the changes of shape between the centers and the selection.
I then rewrote the test using case_data to include different combinations (different r_cut, delay, n_jobs or centers>selection, centers<selection, centers=selection)

@SimoneMartino98 SimoneMartino98 added the bug Something isn't working label Nov 24, 2025
)


def test_nn(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth keeping this test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

created a new test folder for the number of neighbors (with case data).

Copy link
Collaborator

@matteobecchi matteobecchi left a comment

Choose a reason for hiding this comment

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

Everything looks good! This is probably a good template for all future pytests.

@matteobecchi matteobecchi linked an issue Nov 25, 2025 that may be closed by this pull request
@SimoneMartino98 SimoneMartino98 merged commit d879dfe into GMPavanLab:main Nov 25, 2025
11 checks passed
@SimoneMartino98 SimoneMartino98 deleted the lens_fix branch November 25, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LENS crash when computing centers > selection

3 participants