diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-26 15:36:23 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-26 15:36:23 +0100 |
commit | 6fe415bb7baa022f2fc91e8abcc12594eef07be2 (patch) | |
tree | 0647a953000d9da4e53101ff7c41783a6c1a7e6f /scripts/phase.py | |
parent | a457b9823e4c46b5d7bc7d5800008a483502ad32 (diff) | |
download | linux-conf-perf-6fe415bb7baa022f2fc91e8abcc12594eef07be2.tar.gz linux-conf-perf-6fe415bb7baa022f2fc91e8abcc12594eef07be2.tar.bz2 linux-conf-perf-6fe415bb7baa022f2fc91e8abcc12594eef07be2.zip |
Loop phases change
Phases are now refersed as numbers in code.
Diffstat (limited to 'scripts/phase.py')
-rw-r--r-- | scripts/phase.py | 6 |
1 files changed, 5 insertions, 1 deletions
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]) |