GithubHelp home page GithubHelp logo

kwurst / grading-scripts Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 979 KB

Scripts for preparing student programs for grading. Scripts convert student repository code to a PDF file for grading.

License: GNU General Public License v3.0

Python 100.00%

grading-scripts's People

Contributors

kwurst avatar stoneyjackson avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

grading-scripts's Issues

Change name of labconvert.py

Since not all assignments to be converted are labs, labconvert.py is not a good name.

Proposed new names:
assignmentconvert.py
processassignment.py
processdirectory.py - my favorite so far

Other suggestions?

Update Stoney's diagram.

The diagram that Stoney made needs to be updated to show how the workflow works. In particular, it needs to have the arcs labeled. Some of them need to be made bidirectional, or a second arc needs to be added.

Allow multiple verbosity levels

The current verbose feature outputs very detailed messages. Allow multiple verbosity levels.

  • Lowest level of verbosity should be outputting the just the names of the directories being processed.
  • Middle level of verbosity should output the files being processed.
  • Highest level of verbosity should output the individual commands.

Refactor to separate directory code from conversion code

The code consists of two parts

  1. Do the conversion for every subdirectory
  2. Do the conversion itself.

The first part is the same in every script. We should pull it out into its own file, and have it call the second, assignment-specific conversion code.

Generalize/parameterize fetchConvertLab*.sh

It would be nice to generalize the fetchConvertLab*.bash so that there is one script.

$ bash fetchConvertLab.sh config/lab1 alice-bob

Where config/lab1 is a directory that contains 2 files: config.sh and files.txt. config.sh defines variables used by fetchConvertLab.sh. files.txt lists the files you want fetched from the students' repos.

The advantage is to have one script fetchConvertLab.sh. For each new assignment, you would create a folder with config.sh and files.txt. Update those files. Run script.

^C doesn't kill libconvert.py

When you run libconvert.py, and try to stop it using ^C, it keeps running. It should stop. This is really bad when processing many submissions.

I think the problem is that each time you press ^C you are killing the current shell process, which returns control to python, and then python goes on to the next command.

Command or Assignment needs to check the exit value of the shell processes to see if an error has occurred. If an error has occurred it should probably raise an exception.

Add option to process a single directory

There should be an option to process a single directory, rather than all subdirectories of the main directory.
The most common case will be to process all subdirectories, but sometimes a student's repository will be pulled late or have to be reprocessed after an error, and so will need to be processed individually, without reprocessing all the other directories.

Consider having students name their repository in a course-specific way.

Stoney suggested that the name for the student repository should include the course name/number/etc so that students don't end up with name conflicts between labs/projects in different courses.

For example, students can't create a Lab1 repository for CS 140, and another Lab1 repository for CS 254.

A better solution would be to name the repository CS-140-Lab1.

What if the student took the course multiple times (not unheard of)? CS-140-BL-S1-2013-Lab1? That's what I've been doing!

Rewrite to Python

Change code from bash to Python. Mostly done, but not yet committed or pushed.

Refactor conversion code to read details from JSON

The conversion code is basically:

  1. A bunch of lines, each for a separate file (with path) that need to be converted to PDFs
  2. A single line the concatenates the PDF files into a single file
  3. A bunch of lines to delete the separate PDF files.

We should be able to list the files (and paths) in a JSON structure, and the let the code do the first part in a loop, build up the concatenation command in the second part, do the third part in a loop.

(I think this is what Stoney wanted to do last year...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.