Commit 8fa983bf authored by Olivier's avatar Olivier
Browse files

M10+M12: grades now processed with published spreadsheet

parent ff5fd5f6
......@@ -26,5 +26,8 @@ rsync -avh --delete ../M6_match_peers/script_output/peers.csv $inputfolder/
# Clear output folder
rm -rvf $outputfolder/*
# Copy blank mark processing spreadsheet into output folder
cp -v grades_processing_template.ods $outputfolder/grades_processing_$ASSGTSUFFIX.ods
echo "end of script."
......@@ -9,7 +9,8 @@ for the students that participated in the peer-graded assignments.
Input:
1 - grade_to_send.csv :
This file contains the data from the students including their custom ID
and email adresses and grades.
and email adresses and grades. It is generated in the output folder of
module M10, by extracting data manually from the ODS spreadsheet there.
2 - All the pdf files with the solution for the students
for example: “Solution_submisison_1_A12345678.pdf”
......@@ -90,30 +91,30 @@ with open(input_csv_path, newline='') as f:
next(student_info_reader) # Skip header [name, last name, email, ...]
student_data = [row for row in student_info_reader]
for row in student_data:
custom_ID_A.append(row[0])
custom_ID_G.append(row[1])
names.append(row[4])
last_name.append(row[5])
emails.append(row[6])
peer1_grade1.append(row[7])
peer1_grade2.append(row[8])
peer1_grade3.append(row[9])
peer1_grade4.append(row[10])
peer1_grade5.append(row[11])
peer1_grade6.append(row[12])
peer1_rem_poits.append(row[13])
peer1_comments.append(row[14])
peer1_final_grade.append(row[15])
peer2_grade1.append(row[16])
peer2_grade2.append(row[17])
peer2_grade3.append(row[18])
peer2_grade4.append(row[19])
peer2_grade5.append(row[20])
peer2_grade6.append(row[21])
peer2_rem_poits.append(row[22])
peer2_comments.append(row[23])
peer2_final_grade.append(row[24])
avg_grade.append(row[25])
names.append(row[0])
last_name.append(row[1])
emails.append(row[2])
custom_ID_A.append(row[3])
custom_ID_G.append(row[4])
peer1_grade1.append(row[5])
peer1_grade2.append(row[6])
peer1_grade3.append(row[7])
peer1_grade4.append(row[8])
peer1_grade5.append(row[9])
peer1_grade6.append(row[10])
peer1_rem_poits.append(row[11])
peer1_comments.append(row[12])
peer1_final_grade.append(row[13])
peer2_grade1.append(row[14])
peer2_grade2.append(row[15])
peer2_grade3.append(row[16])
peer2_grade4.append(row[17])
peer2_grade5.append(row[18])
peer2_grade6.append(row[19])
peer2_rem_poits.append(row[20])
peer2_comments.append(row[21])
peer2_final_grade.append(row[22])
avg_grade.append(row[23])
for ID in custom_ID_A:
attachment_name = "Solution_submission_"+ID+".pdf"
......
......@@ -16,6 +16,11 @@ tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
# Import grade record (output of M10) into input of M12
rsync -avh --delete ../M10_process_grades/script_output/grades_to_send.csv $inputfolder/
# Clear empty lines in grades_to_send.csv
sed -i '/"","","","","","","","","","","","","","","","","","","","","","","",""/d' $inputfolder/grades_to_send.csv
# Import output of M11 into input of M12
rsync -avh --delete ../M11_generate_graded/script_output/done/ $inputfolder/pdfs/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment