Skip to content

Commit

Permalink
Fleshing out the array sampling structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jolyonb committed Jul 3, 2019
1 parent a2bb664 commit e1d67a2
Show file tree
Hide file tree
Showing 4 changed files with 549 additions and 187 deletions.
1 change: 1 addition & 0 deletions mitxgraders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from mitxgraders.listgrader import *
from mitxgraders.formulagrader import *
from mitxgraders.sampling import *
from mitxgraders.matrixsampling import *
from mitxgraders.exceptions import ConfigError, StudentFacingError, InvalidInput, MissingInput
from mitxgraders.helpers.calc import *
from mitxgraders.comparers import *
Expand Down
1 change: 1 addition & 0 deletions mitxgraders/helpers/calc/specify_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def decorator(func):
def _func(*args):
if len(shapes) != len(args):
# Use the same response as in validate_function_call in expressions.py
# Should change "inputs" to be "input" if only one expected input
msg = ("Wrong number of arguments passed to {func_name}(...): "
"Expected {expected} inputs, but received {received}."
.format(func_name=func_name, expected=len(shapes), received=len(args))
Expand Down
Loading

0 comments on commit e1d67a2

Please sign in to comment.