Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
19eeaa08
Commit
19eeaa08
authored
Jan 10, 2015
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated calls to create_rubric_dict
TNL-708
parent
3993cbb3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
openassessment/xblock/peer_assessment_mixin.py
+1
-1
openassessment/xblock/self_assessment_mixin.py
+1
-1
openassessment/xblock/staff_info_mixin.py
+2
-2
openassessment/xblock/test/test_self.py
+2
-2
openassessment/xblock/workflow_mixin.py
+1
-1
No files found.
openassessment/xblock/peer_assessment_mixin.py
View file @
19eeaa08
...
...
@@ -86,7 +86,7 @@ class PeerAssessmentMixin(object):
data
[
'options_selected'
],
clean_criterion_feedback
(
self
.
rubric_criteria_with_labels
,
data
[
'criterion_feedback'
]),
data
[
'overall_feedback'
],
create_rubric_dict
(
self
.
prompt
,
self
.
rubric_criteria_with_labels
),
create_rubric_dict
(
self
.
prompt
s
,
self
.
rubric_criteria_with_labels
),
assessment_ui_model
[
'must_be_graded_by'
]
)
...
...
openassessment/xblock/self_assessment_mixin.py
View file @
19eeaa08
...
...
@@ -133,7 +133,7 @@ class SelfAssessmentMixin(object):
data
[
'options_selected'
],
clean_criterion_feedback
(
self
.
rubric_criteria
,
data
[
'criterion_feedback'
]),
data
[
'overall_feedback'
],
create_rubric_dict
(
self
.
prompt
,
self
.
rubric_criteria_with_labels
)
create_rubric_dict
(
self
.
prompt
s
,
self
.
rubric_criteria_with_labels
)
)
self
.
publish_assessment_event
(
"openassessmentblock.self_assess"
,
assessment
)
...
...
openassessment/xblock/staff_info_mixin.py
View file @
19eeaa08
...
...
@@ -138,7 +138,7 @@ class StaffInfoMixin(object):
context
[
'display_reschedule_unfinished_tasks'
]
=
display_ai_staff_info
if
display_ai_staff_info
:
context
[
'classifierset'
]
=
ai_api
.
get_classifier_set_info
(
create_rubric_dict
(
self
.
prompt
,
self
.
rubric_criteria_with_labels
),
create_rubric_dict
(
self
.
prompt
s
,
self
.
rubric_criteria_with_labels
),
example_based_assessment
[
'algorithm_id'
],
student_item
[
'course_id'
],
student_item
[
'item_id'
]
...
...
@@ -179,7 +179,7 @@ class StaffInfoMixin(object):
examples
=
assessment
[
"examples"
]
try
:
workflow_uuid
=
ai_api
.
train_classifiers
(
create_rubric_dict
(
self
.
prompt
,
self
.
rubric_criteria_with_labels
),
create_rubric_dict
(
self
.
prompt
s
,
self
.
rubric_criteria_with_labels
),
convert_training_examples_list_to_dict
(
examples
),
student_item_dict
.
get
(
'course_id'
),
student_item_dict
.
get
(
'item_id'
),
...
...
openassessment/xblock/test/test_self.py
View file @
19eeaa08
...
...
@@ -286,7 +286,7 @@ class TestSelfAssessmentRender(XBlockHandlerTestCase):
xblock
.
get_student_item_dict
()[
'student_id'
],
{
u'𝓒𝓸𝓷𝓬𝓲𝓼𝓮'
:
u'ﻉซƈﻉɭɭﻉกՇ'
,
u'Form'
:
u'Fair'
},
{},
"Good job!"
,
create_rubric_dict
(
xblock
.
prompt
,
xblock
.
rubric_criteria
)
create_rubric_dict
(
xblock
.
prompt
s
,
xblock
.
rubric_criteria
)
)
self
.
_assert_path_and_context
(
xblock
,
'openassessmentblock/self/oa_self_complete.html'
,
{
'allow_latex'
:
False
},
...
...
@@ -322,7 +322,7 @@ class TestSelfAssessmentRender(XBlockHandlerTestCase):
xblock
.
get_student_item_dict
()[
'student_id'
],
{
u'𝓒𝓸𝓷𝓬𝓲𝓼𝓮'
:
u'ﻉซƈﻉɭɭﻉกՇ'
,
u'Form'
:
u'Fair'
},
{},
"Good job!"
,
create_rubric_dict
(
xblock
.
prompt
,
xblock
.
rubric_criteria
)
create_rubric_dict
(
xblock
.
prompt
s
,
xblock
.
rubric_criteria
)
)
# This case probably isn't possible, because presumably when we create
...
...
openassessment/xblock/workflow_mixin.py
View file @
19eeaa08
...
...
@@ -54,7 +54,7 @@ class WorkflowMixin(object):
ai_module
=
self
.
get_assessment_module
(
'example-based-assessment'
)
on_init_params
=
{
'ai'
:
{
'rubric'
:
create_rubric_dict
(
self
.
prompt
,
self
.
rubric_criteria_with_labels
),
'rubric'
:
create_rubric_dict
(
self
.
prompt
s
,
self
.
rubric_criteria_with_labels
),
'algorithm_id'
:
ai_module
[
"algorithm_id"
]
if
ai_module
else
None
}
}
...
...
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