Skip to content

Lens fix and new tests#138

Merged
SimoneMartino98 merged 5 commits intoGMPavanLab:mainfrom
SimoneMartino98:lens_fix
Nov 25, 2025
Merged

Lens fix and new tests#138
SimoneMartino98 merged 5 commits intoGMPavanLab:mainfrom
SimoneMartino98:lens_fix

Conversation

@SimoneMartino98
Copy link
Copy Markdown
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
Comment thread tests/lens/test_lens.py
)


def test_nn(
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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