Skip to content

Bug in minimize_dispersion #64

@jnclelland

Description

@jnclelland

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions