Skip to main content

Map of Elections

Project description

Mapel-elections

This pacakge is a plugin for mapel extending it with capabilities of drawing maps of various elections intances.

For the most recent version of mapel, visit its git repo.

Installation

For a simple installation, type: pip install mapel-elections in the console.

For more complicated variants of installation, refer to the readme of mapel here.

Extra dependencies

For the full functionality of the package, it is recommended to also install extra dependencies. Doing this is covered in this readme. The extra dependencies contain:

cplex>=20.1.0.1
pulp~=2.5.1
abcvoting~=2.0.0b0
permanent

which unlock approval based committee rules (which require solving I(L)P programs) and sampling a matrix using a permanent-based approach.

One can do it by invoking
pip install mapel-elections[extras]

:exclamation: Note that this library contains C++ extensions. So installing this library from sources might be a bit cumbersome. We will, one day, put here an instruction how to do it.

Testing Installation

If the instalation was successfull, you should be able to mimic the following:

(<virtual_envirnonment_name>) $ python
...
>>> import mapel.elections.metrics.cppdistances as d
...
>>> d.swapd([[0,1,2],[0,1,2]], [[0,1,2],[2,1,0]])
3
>>> exit()

Support

This project is part of the PRAGMA project which has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 101002854).

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mapel_elections-2.0.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

File details

Details for the file mapel_elections-2.0.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mapel_elections-2.0.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c9e0214e71c58b9ea23e94cecb46637bb11948fe39f3a0ef5957716ca09003d
MD5 242d74a94ad7d859d7f0a65c420a39da
BLAKE2b-256 f40c7604d95875853c8012be5d1211aea69edd6e771d9596e3d2a73ecd12ce4c

See more details on using hashes here.

Supported by

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