Skip to main content

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.3.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

plangraph-0.3.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

plangraph-0.3.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file plangraph-0.3.0.tar.gz.

File metadata

  • Download URL: plangraph-0.3.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for plangraph-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0d0f3271f55df3357c8d6a1c7dac6ef7a003097a37806e0a77b7415ff4ae032d
MD5 fe933ce14f9faa1db31fbab33c22f3eb
BLAKE2b-256 cee49dd83c1622153c38d65d3f53efde8e15fe38c64ddf765fe2abc59643a815

See more details on using hashes here.

File details

Details for the file plangraph-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: plangraph-0.3.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

Hashes for plangraph-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8a3327e91292e87a2ad307256173501bad3619779d4605237844a7715586e7f
MD5 b20f29db98c0050adc43ff596696f224
BLAKE2b-256 85c9c94d32448fb67ef5a333238f6f9c7ffa1c37426bd343e58f73d355a01c7b

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