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

replace gdal exceptions decorator with context manager #400

Closed
wants to merge 1 commit into from

Conversation

emlys
Copy link
Member

@emlys emlys commented Jun 27, 2024

I noticed that a bunch of functions were missing from the pygeoprocessing API docs, and it's because of the decorator I introduced in #392. The functions returned from the decorator don't have the docstring of the original, so no docs were generated.

This was the last straw - since I ran into other issues with the decorator before with multiprocessing and pickling, I decided to remove it and use the reliable context manager everywhere. The extra indentation is annoying in a few places, but this should be a temporary situation until we adopt GDAL 4.

@emlys emlys requested a review from phargogh June 27, 2024 19:52
@emlys emlys self-assigned this Jun 27, 2024
@emlys emlys marked this pull request as draft June 27, 2024 20:05
@emlys emlys closed this Jun 28, 2024
@emlys emlys deleted the remove-gdal-exceptions-decorator branch June 28, 2024 17:42
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