Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier
Peer-graded student exercises
Commits
8f557c14
Commit
8f557c14
authored
Aug 16, 2019
by
Olivier
Browse files
All: assignment number/suffix is now start-of-script variable
parent
d2b4d29b
Changes
5
Hide whitespace changes
Inline
Side-by-side
M10_process_grades/prepare_M10.sh
View file @
8f557c14
#!/bin/bash
# Assignment suffix
ASSGTSUFFIX
=
'example'
# Input parameters
inputfolder
=
'script_input-real'
outputfolder
=
'script_output-real'
...
...
M11_generate_graded/create_graded_pdfs.sh
View file @
8f557c14
...
...
@@ -26,7 +26,7 @@ for submissionpdf in submissions/*.pdf; do
echo
"#"
echo
"building assignment PDF for
$IDA
…"
mv
-v
solutions/solution_graded_
$ASSGTSUFFIX_$IDA
.pdf ./solution.pdf
mv
-v
solutions/solution_graded_
$
{
ASSGTSUFFIX
}
_
$IDA
.pdf ./solution.pdf
mv
-v
submissions/
$IDA
.pdf ./submission.pdf
# Concatenate all three PDFs that we have together now
...
...
M4_send_assignments/email_assignments.py
View file @
8f557c14
...
...
@@ -3,6 +3,12 @@
Author: Germán Santa-Maria
Script: Email Assignments
"""
###########################################################################
# Parameters specific to assignment exercise
# Number of assignment
assignment_suffix
=
"_example"
###########################################################################
"""-------------------------Hard coded input--------------------------------"""
# Input file paths
...
...
@@ -60,7 +66,7 @@ with open(input_csv_path, newline='') as f:
custom_ID_G
.
append
(
row
[
4
])
for
ID
in
custom_ID_A
:
attachment_name
=
"assignment
1
_"
+
ID
+
".pdf"
attachment_name
=
"assignment
"
+
assignment_suffix
+
"
_"
+
ID
+
".pdf"
attachments
.
append
(
attachment_name
)
# Make sure that all the attachments are in the script_input folder by looking
...
...
M7_generate_grading/create_grading_pdfs.sh
View file @
8f557c14
#!/bin/bash
# Assignment suffix
ASSGTSUFFIX
=
'example'
# Input parameters
inputfolder
=
'script_input'
outputfolder
=
'script_output'
...
...
@@ -12,7 +15,7 @@ cp -vrf $inputfolder/* $outputfolder/
cd
$outputfolder
# Copy grading form to work folder (it’s the same file for all )
cp
-v
form/
gradingform
.pdf ./form.pdf
cp
-v
form/
form_
$ASSGTSUFFIX
.pdf ./form.pdf
# Pick up all the "A" files in input subfolder one by one
for
submissionpdf
in
submissions/
*
.pdf
;
do
...
...
M8_send_grading/email_grading_forms.py
View file @
8f557c14
...
...
@@ -3,6 +3,12 @@
Author: Germán Santa-Maria
Script: Email Grading Forms
"""
###########################################################################
# Parameters specific to assignment exercise
# Number of assignment
assignment_suffix
=
"_example"
###########################################################################
"""-------------------------Hard coded input--------------------------------"""
# Input file paths
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment