Releases: mggg/GerryChain
Minor fixes
Fixed a PopulatedGraph bug, which required a totpop
field.
GerryChain v0.2.9 (RevRecom + fixes)
This release adds Reversible Recom to GerryChain. This entails
- A recom proposal that is reversible
reversible_recom()
- A function to produce a uniform spanning tree via Wilson's algorithm
- a faster memoization algorithm to find balanced edge cuts
All of these above changes were led by @pjrule (thanks!)
There are also some fixes that had been sitting for a while:
- Assignment validation (#281 & #285 --- thanks @zschutzman!)
- Non-recursive ReCom, fixing recursion depth errors (#283)
- Fix a bug in the MarkovChain's acceptance function logic (#290)
- Fix
ignore_errors
being ignore inGraph.from_file
(#291)
We also moved both the partisan scores (previously in gerrychain.scores
) and compactness scores (previously in gerrychain.updaters
) to a new gerrychain.metrics
submodule. This is a breaking change for anyone using gerrychain.scores
.
Note -- even though GitHub says Max released this version, it is only partially true. The RevRecom changes were the doing of Bhushan - who should be blamed for any breaks with this release!
GerryChain v0.2.8
Quite a few things have changed since the last release, so it's time for a new one.
Some highlights:
- More informative error warnings for invalid geometries (thanks @pjrule !) #262
- A
.from_districtr_file()
method for creating aPartition
using a plan drawn in Districtr #272 - Test coverage is now at 90%
- A
.plot()
method for more easily plotting districting plans #271 - Support for setting a random seed for reproducibility, along with documentation with reproducibility tips
- GerryChain is now licensed under the BSD 3-Clause License! #264
GerryChain v0.2.7
GerryChain v0.2.3
Notable changes:
- Fixes serialization errors in
Graph.to_json()
- Removes PySAL dependency by implementing our own graph creation logic, which also drastically improved graph creation times
GerryChain v0.2.1 (fixes)
This release fixes some issues in the Graph
class, bringing it in line with the Getting started guide.
GerryChain initial release
🎉
This is the initial release of the GerryChain package, for generating ensembles of districting plans using Markov chain Monte Carlo. This library is authored by the Metric Geometry and Gerrymandering Group as part of our efforts to support basic research into gerrymandering and empower public participation in the redistricting process.
User feedback (bug reports, feature requests, questions) is welcome! Open an issue in our GitHub repository to start the conversation. Contributions are also welcome in the form of pull requests.