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

Make test assertions approximate #154

Merged
merged 5 commits into from
Dec 15, 2023
Merged

Make test assertions approximate #154

merged 5 commits into from
Dec 15, 2023

Conversation

adamltyson
Copy link
Member

@adamltyson adamltyson commented Dec 15, 2023

Some analysis are not exactly the same across OSs/architectures, causing tests to fail. Very small numerical differences can cause (seemingly) large differences in the results (such as assigning a feature to a brain region 1 voxel away).

This PR makes the assertions more approximate to check that while the exact values are not the same, the analysis is still being performed correctly. This isn't ideal, but failing tests mask new failures during development.

Also updates the gitignore file to stop .DS_Store files making their way in.

Closes #117

@adamltyson adamltyson requested a review from a team December 15, 2023 16:20
Copy link
Member

@IgorTatarnikov IgorTatarnikov left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@IgorTatarnikov IgorTatarnikov merged commit dd2dff7 into main Dec 15, 2023
10 checks passed
@IgorTatarnikov IgorTatarnikov deleted the tests branch December 15, 2023 17:59
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.

Tests fail on Apple silicon
2 participants