Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
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.
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.
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.
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()
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).
FAQs
Map of Elections
We found that mapel-elections demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.