A Plan Graph for Goal Optimization (PGGO or 'pogo')
Project description
pggo
A redistricting plan graph for goal optimization (PGGO or "pogo")
Installing the Package
To install the package:
pip install plangraph
The latest version of the package is 0.4.0.
Then in your code, either import pggo or from pggo import ....
Note: The import name is different from the package name.
Getting Started
from pggo import PlanGraph
plan: PlanGraph = PlanGraph(
"NC",
"congress",
"testdata/NC_congress_root_map.csv",
"testdata/NC_input_data.jsonl",
"testdata/NC_graph.json",
)
See PlanGraph.md for using a PlanGraph. See Metrics.md for predefined metrics ("scores").
Testing
Run automated tests with:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plangraph-0.4.0.tar.gz.
File metadata
- Download URL: plangraph-0.4.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
754f4cdb1bb0bc5ea8545d2335a1b303753fee1d5968ab92ac9c52186c498f9f
|
|
| MD5 |
09d1c09f5894cf517311694f08b75cf1
|
|
| BLAKE2b-256 |
9bc4328afb674e1ced583f500107ecd7bd494bca15031b30927f051cc288025a
|
File details
Details for the file plangraph-0.4.0-py3-none-any.whl.
File metadata
- Download URL: plangraph-0.4.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0cbb6b2d258f322fbf5e23d2c0a420999d5c171a9c949d4aa74abc83d50e3b6
|
|
| MD5 |
c3f47cf8676b8aa7eb3705342707af04
|
|
| BLAKE2b-256 |
498d9dbdb54c140405ea21426f0703ed1c6a449c18e752bb28d8436e1a6b51de
|