sys.path.append('.')
import moe
-import moe.stat
import moe.config
+import moe.log
import moe.eval
import moe.pipeline
import moe.batch
e.builtins.set("CONTESTANT", "mj")
e.log.progress("### Evaluating task %s of contestant %s ###\n\n" % (e.cfgs['TASK'], e.cfgs['CONTESTANT']))
e.init(overrides)
-except moe.MoeErr, err:
+except moe.MoeError, err:
e.log.shout("FATAL: %s\n" % err)
sys.exit(1)
file = None
moe.batch.locate(e, file)
e.run()
-except moe.MoeErr, err:
+except moe.MoeError, err:
e.log.shout("FATAL: %s\n" % err)
sys.exit(1)
-except moe.SolutionErr, err:
- ## FIXME: In this case, we might write the status file
+except moe.SolutionError, err:
+ e.stat["error"] = err
e.log.shout("%s\n" % err)
- sys.exit(1)
-print "\nFinal status file:"
-e.stat.write()
+moe.log.default.progress_file.write("\nFinal status file:\n")
+e.stat.write(file=moe.log.default.progress_file)