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

bug: fix nans in Spread #615

Merged
merged 1 commit into from
Oct 6, 2024
Merged

bug: fix nans in Spread #615

merged 1 commit into from
Oct 6, 2024

Conversation

mrava87
Copy link
Collaborator

@mrava87 mrava87 commented Oct 6, 2024

This PR fixes a problem introduced in Spread with latest versions of numba. This is due to the way we used to handle nans, a much cleaner way is used now with math.isnan without having to first convert to integrers.

This commit fixes a problem introduced in Spread with latest versions
of numba. This is due to the way we used to handle nans, a much cleaner
way is used now with math.isnan without having to first convert to
integrers.
@mrava87
Copy link
Collaborator Author

mrava87 commented Oct 6, 2024

@cako FYI, I just installed pylops on my new mac book air and started to have issues with tests related to the Spread operator; turns out that probably something is changed in numba and the way we were handling nans stopped working... the good news is that it forced me to find a much cleaner way (I think!) to do it 😄

@mrava87 mrava87 merged commit 6c6dff6 into PyLops:dev Oct 6, 2024
13 checks passed
@mrava87 mrava87 deleted the fix-radonnan branch October 6, 2024 06:58
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