Skip to main content

Redistricting analysis tools

Project description

rdatools

Redistricting analysis tools (RDA)

This repository (rdatools/rdatools) contains redistricting analysis code. There are two associated repositories of data:

  • rdatools/vtd_data – Various precinct-level input data for the analysis tools, where precincts are generally census VTDs except in a few states which use census blockgroups.
  • rdatools/vtd_ensembles – Various output data from the analysis tools, including ensembles of plans and scores for plans in ensembles.

Categories

The code here is organized by area:

  • Base: Shared code
  • DCCVT: Balzer's algorithm to find a maximally population compact map
  • Ensemble: Ensemble generation & scoring code
  • EI: Ecological inference code
  • Rootmap: Root maps code
  • Score: Scoring code

Installation

To get the code locally, clone the repository:

git clone https://github.com/rdatools/rdatools
cd rdatools

To run the scripts, install the dependencies:

pip install -r requirements.txt

To use the shared code in another project, install the package:

pip install rda-toolkit

Testing

$ pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rda_toolkit-0.0.4.tar.gz (46.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rda_toolkit-0.0.4-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

Details for the file rda_toolkit-0.0.4.tar.gz.

File metadata

  • Download URL: rda_toolkit-0.0.4.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for rda_toolkit-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ccebeb4bb2369bbc3323b14b31f74f50aebc94ef7d1101c8885442761bf88178
MD5 093a37069181f43237caae6f732d9b73
BLAKE2b-256 d10611579a4cc3fa7a85b97896588ab7b7415526bf6056376d12a61e90c3632c

See more details on using hashes here.

File details

Details for the file rda_toolkit-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: rda_toolkit-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 59.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for rda_toolkit-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3031d4fd62e3b49f0fbc7e85173bdeea8a79687dafdfe113f0cd2c3df91204aa
MD5 6b197a4d792d5b5cafd3086d8735dd96
BLAKE2b-256 234a8643659d0c762957a51e2ecef706de06e9dc176d632743576e74e1662521

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page