Commits

Show all
Author Commit Message Labels Comments Date
Richard Lawrence
Merge branch 'cleanup'
Tags
fall2012
Richard Lawrence
* grading/grader.py: comment/docstring cleanup
Richard Lawrence
* grading/grader.py: cleanup top-level interface - split out sorting function - split out main() function - use optparse to get input and output files and sort field from CLI - move error handling out of read_csv and write_csv
Richard Lawrence
* grading/grader.py: averaging function consolidation - remove dead semester-specific averaging functions - implement weighted_average and unweighted_average - rewrite letter_grade_average to use unweighted_average
Richard Lawrence
* grading/grader.py: improve grade conversion functions - provide implementations for percentage grades - abstract conversions into letter_to_number and number_to_letter - reorder code
Richard Lawrence
* grading/grader.py: simplify interface to calculate_grade() Each version of calculate_grade should now just accept a dictionary of grades and return one. Better separation of concerns now: the interface function (main_with_csv, etc.) just has to produce an interable of entered grades, and the grade calculation function just has to map a dict of entered grades to a dict of calculated grades in whatever way is appropriate for each semester.
Richard Lawrence
* grading/grader.py: rearrange code; add organizational comments
Richard Lawrence
* grading/grader.py: remove dead code and comments
Richard Lawrence
grading/grader.py: initial import... This code is in a bit of an odd state. I initially wrote it for Austin, but in an incomplete state, so it is peppered with comments that direct him to fill things in, etc. Since then I have made quick-and-dirty revisions when calculating final grades at the end of each semester. The code needs a good cleanup, a real user interface, and generalization of many of the functions. I am finally moti…
Richard Lawrence
email_submit.org: add footnote explaining PATH
Richard Lawrence
email_submit.py: support for preserving existing files - OPTIONS['overwrite_existing'] - get_filename will generate a unique name by appending '-dup<n>' to the original name (before the extension) if the user does not want files overwritten
Richard Lawrence
email_submit.py: changes to save_attachments - consider parts of preferred content types, even if they're not officially attachments - fix 'PREFERRED' -> 'PREFER' typo
Richard Lawrence
email_submit.py: add support for SMTP login
Richard Lawrence
small changes...
Richard Lawrence
email_submit.org: added logging section; some clarifications
Richard Lawrence
email_submit.py: fix thinko: log_name -> log_file
Richard Lawrence
email_submit: simple grading system
Richard Lawrence
12a grade checker
Richard Lawrence
Ignore file