Skip to content

Commit ca17a17

Browse files
Renamed parameter for custom feedback for incorrect responses
1 parent decf9c2 commit ca17a17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/docs/user.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This function is used to compare two number arrays/vectors/matrices, provided ab
44

55
### Optional parameters
66

7-
There is one optional parameter: `feedback_for_incorrect_case`.
7+
There is one optional parameter: `feedback_for_incorrect_response`.
88

9-
## `feedback_for_incorrect_case`
9+
## `feedback_for_incorrect_response`
1010
All feedback for all incorrect responses will be replaced with the string that this parameter is set to.

app/evaluation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def evaluation_function(response, answer, params) -> dict:
5454

5555
is_correct = np.allclose(res, ans, rtol=rtol, atol=atol)
5656

57-
if is_correct is False and params.get("feedback_for_incorrect_case", None) is not None:
57+
if is_correct is False and params.get("feedback_for_incorrect_response", None) is not None:
5858
return {
5959
"is_correct": is_correct,
60-
"feedback": params["feedback_for_incorrect_case"]
60+
"feedback": params["feedback_for_incorrect_response"]
6161
}
6262

6363
# TODO: If incorrect, could compute which cells are, and return as feedback

0 commit comments

Comments
 (0)