Pseudo-random pair generator
Project description
coffee-roulette
coffee_roulette is a pseudo-random pair generator. It ensures unique pairings among the subjects in each round and optionally suggests a conversation starter and a meeting time.
The code was written for the Coffee Roulette initiative organised by the Research Culture Working Group, Community subgroup, at the Sainsbury Wellcome Centre between January 2021 and November 2022.
To use the code:
- install and import the package
git clone https://github.com/zanemit/coffee-roulette.git
pip install -e .
import coffee_roulette as cr
- create a coffee roulette project (code inspired by DeepLabCut) Participants can be supplied as a list or entered one-by-one through user prompts.
cr.create_coffee_roulette(roulette_name, working_dir = None, participants = None)
This initialises:
- a matrix of meeting probabilities crProbMatrix.npy
- a dictionary that stores active participants and their conversation starters crParticipantDict.pickle
- a configuration file config.yaml
that stores project directory and a range of meeting parameters(frequency, duration, purpose) that affect the printed results
- a conversation starter file crConversationStarters.txt
that users are advised to populate further
- get pairs
cr.get_pairs(cfg_path, conv_starters=True, random_time=True, exclude_nonrandom=None)
This prints the generated pairs and stores them in the \results
folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coffee-roulette-0.4.6.tar.gz
.
File metadata
- Download URL: coffee-roulette-0.4.6.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf406e20aba4b50924ad35c4902d2337e4655ff6bd584c5a25f028c27f5152d |
|
MD5 | d140e3b17f8d1e8b5afe89f325f2e097 |
|
BLAKE2b-256 | a6a1fdadf294a1c0c0e1cecb005051c55808087157df1fdc30d89d8dd74feed2 |
File details
Details for the file coffee_roulette-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: coffee_roulette-0.4.6-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a1d90345e5b36caff5d0ed9d999ebdce801183403ca3607868b7c1df2574c4 |
|
MD5 | 71829741cb1c9b8ed38f6b9eea3c9cd4 |
|
BLAKE2b-256 | dfe4ca045b5e1df2607af79c69fba6d86de157a4c25f6796f24a798f74272740 |