Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
94b70fd8
Commit
94b70fd8
authored
Oct 16, 2012
by
Александр
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start grading implementation
parent
e6eedb92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
common/lib/capa/capa/chem/chemtools.py
+17
-2
No files found.
common/lib/capa/capa/chem/chemtools.py
View file @
94b70fd8
def
vsepr_grader
():
from
collections
import
OrderedDict
pass
def
vsepr_build_correct_answer
(
geometry
,
atoms
):
correct_answer
=
OrderedDict
()
correct_answer
[
'geometry'
]
=
geometry
correct_answer
[
'atoms'
]
=
OrderedDict
(
atoms
)
return
correct_answer
def
vsepr_grade
(
user_input
,
correct_answer
):
if
user_input
[
'geometry'
]
!=
correct_answer
[
'geometry'
]:
return
False
if
user_input
[
'atoms'
]
.
values
()
!=
correct_answer
[
'atoms'
]
.
values
():
return
False
return
True
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