Simulations of different electoral laws with the same dataset to see if there would be any changes in the composition of the parliament.
Needs python3.
Use the package manager pip to install all the librabries.
pip3 install -r requirements.txt
Two ways of starting the simulation:
- Using the bash console:
python3 -m src LeggiElettorali/LawName
- Using the python console:
import src
src.run_simulation('LeggiElettorali/LawName')
Create a folder in LeggiElettorali/name_of_new_law with this structure:
- Classes
- Data
- Instances
for more information on which files to put in the folder, see the documentation.
- First release of the framework and Europee electoral law: Lorenzo Ruffati (@LRuffati)
- Porcellum electoral law: Laura Amabili (@LauraAmabili)
- Mattarellum electoral law: Davide Maioli (@davidemaioli)
- Binomiale Electoral law:
- Alessandro Zito (@alessandrozito98)
- Mirko Li Veli (@mirkoliveli)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Licensed under GNU General Public License v3.0 license.