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 pearsonr_mat divide by zero error #155

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

ronald-jaepel
Copy link
Collaborator

The error was caused by lower floating point division in the numba.njit optimized code. We now check if r_x_den * r_y_den is != zero and only then calculate the real result.

The error was caused by lower floating point division in the numba.njit optimized code. We now check if r_x_den * r_y_den is != zero and only then calculate the real result.
@ronald-jaepel ronald-jaepel self-assigned this Jul 8, 2024
@ronald-jaepel ronald-jaepel merged commit 8756224 into dev Jul 9, 2024
5 checks passed
@ronald-jaepel ronald-jaepel deleted the fix/pearsonr_mat_div_by_zero branch July 9, 2024 13:04
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