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

Improve exception on convolve_2d worker timeout #406

Merged

Conversation

phargogh
Copy link
Member

@phargogh phargogh commented Oct 9, 2024

This PR makes 2 concrete improvements to convolve_2d:

  1. Instead of raising queue.Empty on timeout, RuntimeError with a more helpful message is raised
  2. We were not using the function signature's max_timeout parameter, so we are now using it.

Also, I shortened the text we're asserting in a couple other tests because recent versions of GDAL made some adjustments to the text of their exceptions. Shortening the string we're asserting allows us to have the test remain valid for all the GDAL versions we're checking.

Fixes #360

@phargogh phargogh requested a review from emlys October 9, 2024 23:36
@phargogh phargogh modified the milestones: 2.4.6, 2.4.7 Oct 11, 2024
Copy link
Member

@emlys emlys left a comment

Choose a reason for hiding this comment

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

👍

@emlys emlys merged commit 8982604 into natcap:main Nov 23, 2024
63 checks passed
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.

convolve_2d raises unhelpful error on worker timeout
2 participants