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

[FIX] Fix nan_policy related bug in compare_images #86

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

VinceBaz
Copy link
Member

@VinceBaz VinceBaz commented Jan 9, 2023

This PR fixes a bug in compare_images.

nan values were dropped from srcdata and trgdata regardless of whether nan_policy was set to omit or propagate. This is not what we want: we want to keep the nan values when nan_policy is set to propagate, so that the metric function can handle these values however it wants.

This bug might be related to issue #77.

This commit fixes a bug in `compare_images`. Basically, `nan` values
were dropped from `srcdata` and `trgdata` regardless of whether
`nan_policy` was set to `omit` or `propagate`. This is not what we want:
we want to keep the `nan` values when `nan_policy` is set to
`propagate`, so that the metric function can handle these values however
it wants.
@VinceBaz VinceBaz merged commit 76ef873 into netneurolab:main Jan 18, 2023
github-actions bot pushed a commit that referenced this pull request Jan 18, 2023
[FIX] Fix nan_policy related bug in compare_images 76ef873
github-actions bot pushed a commit to liuzhenqi77/neuromaps that referenced this pull request Jan 23, 2023
[FIX] Fix nan_policy related bug in compare_images 76ef873
@VinceBaz VinceBaz deleted the fix-compare_images branch February 2, 2023 03:18
github-actions bot pushed a commit to VinceBaz/neuromaps that referenced this pull request Feb 2, 2023
[FIX] Fix nan_policy related bug in compare_images 76ef873
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.

1 participant