Skip to main content

Automatically assigns seats to students in a smart way.

Project description

LupSeat

LupSeats assigns seats to students in a smart and automatic away.

Instructions

Run with python3 main.py students_file seats_file [--partner partner_file] [--out output_file] [--fmt output_format] [--gout output_gfile] [--seed seed_num] [--algorithm algorithm_type] [--eval] [--nosave]

-students_file - A csv file containing first name, middle name, last name, student id, dominant hand, special needs flag (see students.csv for example)

-seats_file - A yaml file containing the room seating information. (see seats.txt for example)

-partner_file - A csv file containing student ids of people who were partnered up previously (see partners.csv for example)

-output_file - Name of output file

-output_format - Output format string

-output_gfile - Name of output image file

-seed_num - A seed for the randomizer to produce deterministic results.

-algorithm_type - Specifies the algorithm (can be chunkincrease or consecdivide)

-eval - A flag to produce evaluation score (average number of students sitting next to each other). Lower score is better.

-nosave - A flag to disable saving output files (used primarily for automated evaluation).

Output format string

The output format string specifies how students are identified in the output file.

Variable names: sid, fname, lname.

Variable names in format string must be encased by brackets, and can be sliced using the bar operator.

Examples

{fname} {lname} has sid {sid}

{sid|-5,-1}

{fname|0}.{lname|0}.

Unit Tests

Run unit tests with python3 -m unittest tests/*_test.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

LupSeat-1.0.0-py3-none-any.whl (13.1 kB view hashes)

Uploaded Python 3

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