Add :main in project.clj and fix namespace reference in core

This commit is contained in:
Lee Spector 2020-06-07 15:55:05 -04:00
parent 0d77bb654f
commit 7d2fdbb723
2 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,5 @@
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.0"]]
:main ^:skip-aot propeller.core
:repl-options {:init-ns propeller.core})

View File

@ -487,7 +487,7 @@
(defn -main
"Runs propel-gp, giving it a map of arguments."
[& args]
(binding [*ns* (the-ns 'propel.core)]
(binding [*ns* (the-ns 'propeller.core)]
(propel-gp (update-in (merge {:instructions default-instructions
:error-function regression-error-function
:max-generations 500