Skip to content

cse103/Administrative_Code

Repository files navigation

Scripts

Webwork allows adding students from a .lst file.

  • Blink2Webwork.py take two file names. First one is a .tsv file contains all the students to be added to webwork. Second is a .lst file for program to write to. lst file is used by webwork as classlist file.

  • Blink2Webwork_diff.py find the new students who are in either new waitlist or enrollment list but not in any of the old waitlist or enrollment lists. File takes five files as arguemnts:

    • the .lst file to write to.
    • the .tsv file contains old enrollment students list.
    • the .tsv file contains old waitlist students list.
    • the .tsv file contains new enrollment students list.
    • the .tsv file contains new waitlist students list.
  • Blink2Piazza.py take in a .tsv file as an argument and output a list of emails. Can simply copy and paste the output into piazza to invite students through their emails.

Generating Assignments

Webwork allows importing assignment descriptions from def files. In many ways it's easier to track the problems we use outside of webwork itself, so we have a few scripts and files to generate the def files for us which we then import into webwork itself.

All the PG files used in Fall 2014 are located in the cse103/PG_files repository. They were collected there after an initial selection pass made by Yoav. On the webwork server, they are under /opt/webwork/courses/{COURSE}/templates/Reorganized to isolate them from the rest of the files which were kept from previous quarters.

The file set_assignments.csv is a table which maps PG files to sets. The columns include Set Name, PG File Path,Topic, Used, and Original Path for files that were previously in other locations.

The Python script CSV_to_defs.py takes the file set_assignments.csv and uses it to generate def files for each set name given. It generates due dates automatically based on the lexicographic sort order of the set names (this could be improved).

The Bash script scp_defs.sh runs the above Python script and then copies the generated def files to the appropriate location on the webwork server. Once the def files are on the server, you should delete any existing versions of assignments you want to re-import and then go to the import page in the homework sets editor and select the def files that you want to import.'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published