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 in minimize_dispersion #64

Open
jnclelland opened this issue Jul 18, 2024 · 0 comments
Open

Bug in minimize_dispersion #64

jnclelland opened this issue Jul 18, 2024 · 0 comments

Comments

@jnclelland
Copy link

The minimize_dispersion function expects a GeoDataFrame as input, but then it tries to aggregate all columns by summing them and throws up an error because it can't sum the geometry column. The problem appears to be in lines 300-306 of gerrytools/geometry/optimize.py and should be easily fixable by selecting only the necessary columns to aggregate.

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

No branches or pull requests

1 participant