Skip to content

Move GDALUseExceptions and gdal_use_exceptions into new utils module#447

Merged
claire-simpson merged 4 commits intonatcap:mainfrom
emlys:task/446
Sep 29, 2025
Merged

Move GDALUseExceptions and gdal_use_exceptions into new utils module#447
claire-simpson merged 4 commits intonatcap:mainfrom
emlys:task/446

Conversation

@emlys
Copy link
Copy Markdown
Member

@emlys emlys commented Sep 26, 2025

Fixes #446

Moving these functions out of cython into a regular python module to prevent the issue described in #446. To avoid circular imports, I had to make a new module to contain them, which I named utils.

@emlys emlys self-assigned this Sep 26, 2025
@emlys emlys marked this pull request as ready for review September 29, 2025 18:06
Copy link
Copy Markdown
Contributor

@claire-simpson claire-simpson left a comment

Choose a reason for hiding this comment

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

Looks good! My only note is that test_pygeoprocessing.py still contains the line from pygeoprocessing.geoprocessing_core import gdal_use_exceptions

@emlys
Copy link
Copy Markdown
Member Author

emlys commented Sep 29, 2025

Thanks for catching that! Back to you

@claire-simpson claire-simpson merged commit 00a8f1c into natcap:main Sep 29, 2025
93 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.

Move gdal_use_exceptions decorator out of cython

2 participants