Don't call identity on error function

This commit is contained in:
Lee Spector 2021-07-13 18:20:31 -04:00
parent 4954ac3a5f
commit ec65f959f2

View File

@ -23,7 +23,6 @@
;; Creates problems
(require (symbol (str "propeller.problems." (first args))))
(gp/gp
(update-in
(merge
{:instructions (eval-problem-var (first args) "instructions")
:error-function (eval-problem-var (first args) "error-function")
@ -40,6 +39,4 @@
:PSB2-problem (clojure.string/replace (first args) #"PSB2." "")}
(apply hash-map
(map #(if (and (string? %) (not (.contains % "/"))) (read-string %) %)
(rest args))))
[:error-function]
identity)))
(rest args))))))