Size: 1332
Comment:
|
Size: 2644
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Scheduler is a simple python script that creates Instructional Lab Schedules (example: [[attachment:103_4320.ps]]) from a set of simple text files. By default, the program creates a summary page that has a 12-up view of all the schedules, and detail pages for each of the individual schedules (these are about 8 inches square). | Scheduler is a simple python script that creates Instructional Lab Schedules (example: [[attachment:103_4320.ps]]<<FootNote(You can go to http://pages.cs.wisc.edu/~ghost/gsview/index.htm to get a viewer for ps files)>>) from a set of simple text files. By default, the program creates a summary page that has a 12-up view of all the schedules, and detail pages for each of the individual schedules (these are about 8 inches square). |
Line 4: | Line 4: |
== Example == | == Configuration == |
Line 22: | Line 22: |
== Usage == To run the file just execute it from the command line (it takes no arguments): {{{ [cwilson@trogdor]$ ./scheduler.py Generating summary in [summary.ps]...DONE Generating individual in [103_4320.ps]...DONE Generating individual in [104_3328.ps]...DONE Generating individual in [201_4314.ps]...DONE Generating individual in [207_4310.ps]...DONE }}} Windows: {{{ C:\Documents and Settings\user\Desktop\scheduler>scheduler.py Generating summary in [summary.ps]...DONE Generating individual in [103_4320.ps]...DONE Generating individual in [104_3328.ps]...DONE Generating individual in [201_4314.ps]...DONE Generating individual in [207_4310.ps]...DONE }}} |
|
Line 24: | Line 47: |
* tarball [[attachment:scheduler.tgz]] | * tarball [[attachment:scheduler.tar.gz]] * image files: [[attachment:103_4320.png]], [[attachment:104_3320.png]], [[attachment:104_3328.png]], [[attachment:109_3124.png]], [[attachment:201_4314.png]], [[attachment:202_3310.png]], [[attachment:202_3314.png]], [[attachment:207_4310.png]], [[attachment:208_3254.png]], [[attachment:248_3136.png]], [[attachment:308_4336.png]], [[attachment:summary.png]] ''sha1sums'' {{{ 5a391976a5640509c9b995908866610a6096ac82 scheduler.tar.gz d55d1966702559b959072747c4d320e51c6bac55 scheduler.zip }}} |
Overview
Scheduler is a simple python script that creates Instructional Lab Schedules (example: 103_4320.ps1) from a set of simple text files. By default, the program creates a summary page that has a 12-up view of all the schedules, and detail pages for each of the individual schedules (these are about 8 inches square).
Configuration
This is an example of the layout of an input file (called '103_4320.txt'):
M,12:05 301 Ojalvo 14:00 M,14:25 302 Carmody 16:20 M,16:35 303 Ojalvo 18:30 M,19:05 304 N/A 21:00 T,7:45 305 Carmody 9:40 T,9:55 306 Zeng 11:50 T,12:05 307 Zeng 14:00 ...
and so on...
Input files must be named in the form <lab num>_<room num>.txt. The first column has a comma (',') with no space on either side separating the day of the week and the start time. Times are in 24-hour format. Columns are separated by any amount of tabs or spaces but cannot span lines. Lines may begin with an octothorpe/hash/pound-sign ('#') and they will be ignored. Blank lines are also allowed, so please include them between days for readability.
Usage
To run the file just execute it from the command line (it takes no arguments):
[cwilson@trogdor]$ ./scheduler.py Generating summary in [summary.ps]...DONE Generating individual in [103_4320.ps]...DONE Generating individual in [104_3328.ps]...DONE Generating individual in [201_4314.ps]...DONE Generating individual in [207_4310.ps]...DONE
Windows:
C:\Documents and Settings\user\Desktop\scheduler>scheduler.py Generating summary in [summary.ps]...DONE Generating individual in [103_4320.ps]...DONE Generating individual in [104_3328.ps]...DONE Generating individual in [201_4314.ps]...DONE Generating individual in [207_4310.ps]...DONE
Download
zip scheduler.zip
tarball scheduler.tar.gz
image files: 103_4320.png, 104_3320.png, 104_3328.png, 109_3124.png, 201_4314.png, 202_3310.png, 202_3314.png, 207_4310.png, 208_3254.png, 248_3136.png, 308_4336.png, summary.png
sha1sums
5a391976a5640509c9b995908866610a6096ac82 scheduler.tar.gz d55d1966702559b959072747c4d320e51c6bac55 scheduler.zip
Bugs/Questions/Comments
Please contact cwilson@physics.wisc.edu
You can go to http://pages.cs.wisc.edu/~ghost/gsview/index.htm to get a viewer for ps files (1)