18
0

Compare commits

..

6 Commits

5 changed files with 25 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
## load in the data
#################################
myuw <- read.csv("../data/2024_autumn_COMMLD_570_A_joint_students.csv", stringsAsFactors=FALSE)
myuw <- read.csv("data/2025_autumn_COMMLD_570_A_students.csv", stringsAsFactors=FALSE)
current.dir <- getwd()
source("../assessment_and_tracking/track_participation.R")
source("assessment_and_tracking/track_participation.R")
setwd(current.dir)
rownames(d) <- d$unique.name
@@ -24,7 +24,7 @@ absence.threshold <- median(d$absences)
## median(d$num.calls)
## questions.cutoff <- nrow(call.list) / nrow(d) ## TODO talk about this
## this is the 95% percentile based on simulation in simulation.R
questions.cutoff <- 15
questions.cutoff <- 34
## show the distribution of assessments
table(call.list$assessment)
@@ -135,14 +135,14 @@ d[sort.list(d$part.4point, decreasing=TRUE),
## writing out data to CSV
d.print <- merge(d, myuw[,c("StudentNo", "FirstName", "LastName", "UWNetID")],
by.x="unique.name", by.y="StudentNo")
write.csv(d.print, file="../data/final_participation_grades.csv")
write.csv(d.print, file="data/final_participation_grades.csv")
library(rmarkdown)
for (id in d$unique.name) {
render(input="student_report_template.Rmd",
render(input="assessment_and_tracking/student_report_template.Rmd",
output_format="html_document",
output_file=paste("../data/case_grades/",
output_file=paste(current.dir, "/data/case_grades/",
d.print$unique.name[d.print$unique.name == id],
sep=""))
}

View File

@@ -1,4 +1,4 @@
setwd("../data/")
setwd("data/")
library(data.table)

View File

@@ -36,7 +36,7 @@ class ColdCall():
previous_questions = defaultdict(int)
for fn in listdir("./data/"):
if re.match("call_list-\d{4}-\d{2}-\d{2}.tsv", fn):
if re.match(r"call_list-\d{4}-\d{2}-\d{2}.tsv", fn):
with open(f"./data/{fn}", 'r') as f:
for row in DictReader(f, delimiter="\t"):
if not row["answered"] == "FALSE":

View File

@@ -1,16 +0,0 @@
{
"roster_file" : "data/FIXME.csv",
"roster_unique_rowname" : "StudentNo",
"roster_firstname_rowname" : "FirstName",
"roster_lastname_rowname" : "LastName",
"student_info_file" : "data/student_information.tsv",
"student_info_gsheet_id" : "FIXME",
"student_info_gsheet_gid" : 99999999,
"optout_file" : "data/optout_poll_data.tsv",
"optout_gsheet_id" : "FIXME",
"optout_gsheet_gid" : 99999999,
"daily_calllist_file" : "data/call_list-{date}.tsv",
"daily_attendance" : "data/attendance-{date}.tsv",
"unique_name_rowname" : "Your UW student number",
"preferred_name_rowname" : "Name you'd like to go by in class"
}

1
configuration.json Symbolic link
View File

@@ -0,0 +1 @@
data/configuration.json

16
data/configuration.json Normal file
View File

@@ -0,0 +1,16 @@
{
"roster_file" : "data/FIXME.csv",
"roster_unique_rowname" : "StudentNo",
"roster_firstname_rowname" : "FirstName",
"roster_lastname_rowname" : "LastName",
"student_info_file" : "data/student_information.tsv",
"student_info_gsheet_id" : "FIXME",
"student_info_gsheet_gid" : 99999999,
"optout_file" : "data/optout_poll_data.tsv",
"optout_gsheet_id" : "FIXME",
"optout_gsheet_gid" : 99999999,
"daily_calllist_file" : "data/call_list-{date}.tsv",
"daily_attendance" : "data/attendance-{date}.tsv",
"unique_name_rowname" : "Your UW student number",
"preferred_name_rowname" : "Name you'd like to go by in class"
}