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

add tests for transforming to atlas space function #38

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

alessandrofelder
Copy link
Member

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
Improves test coverage.

What does this PR do?
Adds two basic tests for brainmapper.brainreg.transform.transform_points_from_downsampled_to_atlas_space()

References

This was part of debugging what was going on brainglobe-workflows/83 (but turned out to be unrelated)

How has this PR been tested?

This PR just adds tests, which pass, as do all existing tests.

Is this a breaking change?

No

Does this PR require an update to the documentation?

No

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@alessandrofelder alessandrofelder requested a review from a team February 22, 2024 18:27
@alessandrofelder alessandrofelder marked this pull request as ready for review February 22, 2024 18:27
Copy link
Contributor

@willGraham01 willGraham01 left a comment

Choose a reason for hiding this comment

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

More tests are always better - just wondering if we can use parameterisation to combine the two tests into one? Right now there's a lot of repeated code in both - the only difference being the values of mock_deformation_field, downsampled_points, and the values the assertions check against at the end

@alessandrofelder
Copy link
Member Author

Good point.

@willGraham01 willGraham01 merged commit e075840 into main Feb 27, 2024
10 checks passed
@willGraham01 willGraham01 deleted the test-transform branch February 27, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants