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 details)

Uploaded Python 3

File details

Details for the file LupSeat-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: LupSeat-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for LupSeat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51f53ff020999d1837c300a6ca09e5924f9d4a927be3bf13fc0a62e0eabe7594
MD5 136b0676298071c9f14d844c8f1eebbb
BLAKE2b-256 4d16d0f574da6b8c110c4fd3eb50d1f2d8778392efcc526a62b51faa18cd2c69

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