Commit 35f07914 authored by LammLukas's avatar LammLukas

Finished example_1.py

parent 45b44506
......@@ -10,27 +10,15 @@ Author: L. Lamm (lamm@ifam.rwth-aachen.de)
1. Import all necessary packages
"""
from src.exam import Exam
from src.protocols import Protocol
"""
2. Create a new exam object
After you have downloaded the list of participants from RWTHOnline, you can use this .csv file
to create your new exam.
"""
ex = Exam('./data/example_inputdata.csv')
"""
2. Import information from RWTHOnline file
Within this step, the provided data from the RWTHOnline input file will be read. This includes
information on:
* Path to the inputfile
* Date of the examination
* Name of the course
* Name of the principal examiner
* List of participants
"""
#ex.import_data_RWTHOnline('./data/example_inputdata.csv')
exam = Exam('./data/example_inputdata.csv')
"""
3. Assign number of points per task
......@@ -38,13 +26,27 @@ information on:
Besides the already imported information, you also have to assign the number of point which can
be achieved for each task.
"""
ex.Points_per_task = [10, 12, 20, 5]
exam.Points_per_task = [10, 12, 20, 5]
"""
4. Assign rooms for examination
Besides the already imported information, you also have to assign the number of point which can
be achieved for each task.
Now you can assign the participants to the booked rooms. By default they will be assigned via
their matriculation number in ascending order. Rooms will be filled using an offset of 5 seats
starting with the room of highest capacity.
"""
exam.assign_participants()
"""
5. Create protocols and participant lists
print(ex)
\ No newline at end of file
This will automatically generate protocols and the associated participant list for every room.
Protocols are provided in Microsoft Word .docx format.
"""
protocol = Protocol(exam)
protocol.make_protocol('./data/example_protocol.docx')
"""
6. Save examination
"""
exam.save_exam('./data/example_exam.json')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment