From 3ed57151b9ce74dd67eda04fc00e9695a797b8f9 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Tue, 12 Aug 2025 17:24:22 +0100 Subject: [PATCH] Added logging to eval function --- evaluation_function.wl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/evaluation_function.wl b/evaluation_function.wl index eca7a08..8497226 100644 --- a/evaluation_function.wl +++ b/evaluation_function.wl @@ -10,7 +10,10 @@ equalQAssociation = answer = data["answer"]; response = data["response"]; params = data["params"]; + Print["Loaded Data"]; + Print[data]; + Print["Processing Response and Answer"]; If[NumericQ[answer], tolerance = If[TrueQ[params["tolerance_is_absolute"]], @@ -23,12 +26,13 @@ equalQAssociation = correctQ = TrueQ[answer == response] ]; + Print["Deciding Feedback"]; feedback = If[correctQ, params["correct_response_feedback"], params["incorrect_response_feedback"] ]; - + Print["Outputting Response"]; <| "command" -> "eval", "result" -> <| @@ -60,4 +64,5 @@ equalQIO = Function[Export[#2, equalQAssociation[Import[#1, "JSON"] //. argv = Rest[$ScriptCommandLine]; +Print["Running Evaluation"]; equalQIO[argv[[1]], argv[[2]]]