https://github.com/astrobarker/rossini
RandOmized diScuSsIoN group leader selectIon
https://github.com/astrobarker/rossini
Last synced: over 1 year ago
JSON representation
RandOmized diScuSsIoN group leader selectIon
- Host: GitHub
- URL: https://github.com/astrobarker/rossini
- Owner: AstroBarker
- License: gpl-3.0
- Created: 2020-02-17T22:50:44.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T00:07:45.000Z (almost 2 years ago)
- Last Synced: 2025-02-04T10:56:39.647Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ROSSINI
RandOmized diScuSsIoN group leader selectIon
---
Tired of always being short of volunteers for paper club? Tired of always leading group discussion despite having class and teaching
responsibilities? Look no further. _ROSSINI_ is a simple randomizer that, given a list of people... randomly selects one!
However, you can initialize the probability distribution as a "tiered" uniform distribution, allocating a higher
likelihood of being slected to folks in a certain tier (such as those who aren't teaching, for example). No more excuses!
Simply throw the folks' names in a file (such as `people.dat`) and run `rossini.py`. By default, the previous
leaders are stored in a file (such as `people_old.dat`). We have the option, then, to remove the
previous discussion leader from the distribution prior to computing the weights.
To do so, simply set the flag `REMOVE_PREV = True` at the top of `rossini.py`. No one wants to get stuck leading multiple times
in a row.
Example distribution:

Currently, it's just a semi-uniform probability distribution where the weights in each "tier" proportional to each other
by some factor `f = 3.0/4.0`.
# Code Style
Code linting and formatting is done with [ruff](https://docs.astral.sh/ruff/).
Rules are listed in [ruff.toml](ruff.toml).
To check all python in the current directory, you may `ruff .`.
To format a given file according to `ruff.toml`, run `ruff format file.py`.
Checks for formatting are performed on each push / PR.