Files
jugement_majoritaire/README.md
2025-09-28 09:50:55 +02:00

60 lines
1.2 KiB
Markdown

# Glue to use majortiy judgement algorithm in various polls applications
Initial trigger of this project is implementation of this in Nextcloud poll app https://github.com/nextcloud/polls/issues/3472, project pushed by https://www.astrolabe.coop/
What does this project :
It compares local implementation with https://github.com/MieuxVoter using tests samples some exported from nextcloud_poll in csv.
## What is majortiy judgement algorithm ?
https://en.wikipedia.org/wiki/Majority_judgment
# Library to deliver a poll result with majority judgement algorithm
After some research most of implementation is done in https://github.com/MieuxVoter
Sorry for inconvenience but currently only french version is available.
LISEZMOI.md
## Testing
```
cd samples
./test.sh
```
tests should run without errors, there is not special error checking within test
## unitary tests
python venv **code** activated ( within sample tests.sh does it ).
```
make setup_dev
```
```
./check.sh 1
./check.sh 2
./check.sh 3
./check.sh 4
```
## ça marche chez moi (tm)
dev done on Ubuntu 24.04.2 LTS
```
cd code
./check_csv.sh ../samples/nextcloud_poll_export/poll1.csv
```
```
./check_csv.sh ../samples/nextcloud_poll_export/poll1.csv >../samples/0.json
```
et tester