Skip to content

Use bool rather than int in ManagedRaster cython constructor#452

Merged
emlys merged 1 commit intonatcap:mainfrom
megannissel:bugfix/451-managed-raster-input
Dec 11, 2025
Merged

Use bool rather than int in ManagedRaster cython constructor#452
emlys merged 1 commit intonatcap:mainfrom
megannissel:bugfix/451-managed-raster-input

Conversation

@megannissel
Copy link
Copy Markdown
Contributor

Fixes #451

The third parameter to the ManagedRaster constructor is a bool and the type casting that had previously worked no longer does. This is likely the result of a change in cython 3.2.0, which released on November 5. The same fix was implemented in InVEST in November.

@megannissel megannissel requested a review from emlys December 11, 2025 19:52
Copy link
Copy Markdown
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.

Thanks @megannissel!

@emlys emlys merged commit f5ccd9e into natcap:main Dec 11, 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.

Routing tests failing with TypeError: Expected bool, got int

2 participants