Skip to main content

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:

  1. install and import the package
git clone https://github.com/zanemit/coffee-roulette.git
pip install -e .
import coffee_roulette as cr
  1. 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

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coffee-roulette-0.4.6.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

coffee_roulette-0.4.6-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

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

Hashes for coffee-roulette-0.4.6.tar.gz
Algorithm Hash digest
SHA256 8cf406e20aba4b50924ad35c4902d2337e4655ff6bd584c5a25f028c27f5152d
MD5 d140e3b17f8d1e8b5afe89f325f2e097
BLAKE2b-256 a6a1fdadf294a1c0c0e1cecb005051c55808087157df1fdc30d89d8dd74feed2

See more details on using hashes here.

File details

Details for the file coffee_roulette-0.4.6-py3-none-any.whl.

File metadata

File hashes

Hashes for coffee_roulette-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 09a1d90345e5b36caff5d0ed9d999ebdce801183403ca3607868b7c1df2574c4
MD5 71829741cb1c9b8ed38f6b9eea3c9cd4
BLAKE2b-256 dfe4ca045b5e1df2607af79c69fba6d86de157a4c25f6796f24a798f74272740

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page