From 6fe415bb7baa022f2fc91e8abcc12594eef07be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 26 Mar 2015 15:36:23 +0100 Subject: Loop phases change Phases are now refersed as numbers in code. --- scripts/phase.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/phase.py') diff --git a/scripts/phase.py b/scripts/phase.py index 6578b13..4da61b1 100644 --- a/scripts/phase.py +++ b/scripts/phase.py @@ -3,7 +3,7 @@ import sys from conf import conf -phases = ("Not Initialized", #0 +phases = ("Not Initialized" #0 "Initializing", #1 "Initialized", #2 "Solution generating", #3 @@ -35,3 +35,7 @@ def pset(str): def phs(str): return phases.index(str) + +def message(phs): + "Prints message signaling running phase." + print("-- " + phases[phs]) -- cgit v1.2.3