From 62a0c29f4d3d18cb7715be05eb5ccba5dcc0762f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 20 May 2015 11:16:04 +0200 Subject: Add multiple bases support --- scripts/evaluate.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/evaluate.py b/scripts/evaluate.py index bf16166..32129bc 100755 --- a/scripts/evaluate.py +++ b/scripts/evaluate.py @@ -156,9 +156,13 @@ def evaluate(): if symrow[i] == 0: print("Base", end=' ') else: - for base in bases: - if i in base: + if len(bases) > 0: + if i in bases[0]: print("Base", end=' ') + elif len(bases) > 1: + for x in range(0, len(bases)): + if i in bases[x]: + print("Base" + x, end=' ') for s in symrow[i]: print(utils.smap[s], end=' ') print("=", end=' ') -- cgit v1.2.3