mggg / maup

The geospatial toolkit for redistricting data.
https://maup.readthedocs.io/en/latest/
MIT License
65 stars 23 forks source link

Fix TypeError when nothing is assigned by covering #48

Closed InnovativeInventor closed 2 years ago

InnovativeInventor commented 3 years ago

When nothing is assigned by area, the type of assignment is a geometry object, which results in a TypeError. Coercing the types to a float resolves this issue.

InnovativeInventor commented 3 years ago

This also fixes a bug that occurs when groups is empty.