Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assignment statistics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Bohn
assignment statistics
Commits
cf9de52c
Commit
cf9de52c
authored
3 years ago
by
Christopher Bohn
Browse files
Options
Downloads
Patches
Plain Diff
Warns users away from 0-point assignments. Closes
#1
parent
12581d59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
analyze_grades.py
+8
-5
8 additions, 5 deletions
analyze_grades.py
with
8 additions
and
5 deletions
analyze_grades.py
+
8
−
5
View file @
cf9de52c
...
...
@@ -68,11 +68,14 @@ def print_statistics_for_some_majors(assignment: CanvasAssignment, majors: Set[M
def
print_statistics
(
assignment
:
CanvasAssignment
,
major_partitions
:
Dict
[
Major
,
Set
[
CanvasUser
]])
->
None
:
print
(
f
'
Statistics for
{
assignment
}
:
'
)
computing_majors
:
Set
[
Major
]
=
{
major
for
major
in
Major
.
majors
if
major
.
is_computing_major
}
non_computing_majors
:
Set
[
Major
]
=
{
major
for
major
in
major_partitions
.
keys
()
if
not
major
.
is_computing_major
}
print_statistics_for_some_majors
(
assignment
,
computing_majors
,
major_partitions
)
print_statistics_for_some_majors
(
assignment
,
non_computing_majors
,
major_partitions
)
if
assignment
.
get_points_possible
()
==
0
:
print
(
f
'
WARNING:
{
assignment
}
is a 0-point assignment; cannot compute scaled mean score.
'
)
else
:
print
(
f
'
Statistics for
{
assignment
}
:
'
)
computing_majors
:
Set
[
Major
]
=
{
major
for
major
in
Major
.
majors
if
major
.
is_computing_major
}
non_computing_majors
:
Set
[
Major
]
=
{
major
for
major
in
major_partitions
.
keys
()
if
not
major
.
is_computing_major
}
print_statistics_for_some_majors
(
assignment
,
computing_majors
,
major_partitions
)
print_statistics_for_some_majors
(
assignment
,
non_computing_majors
,
major_partitions
)
def
print_statistics_by_section
(
course
:
CanvasCourse
,
assignment
:
CanvasAssignment
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment