summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2017-11-08 08:49:09 +0100
committerVincent Guittot <vincent.guittot@linaro.org>2017-11-22 11:10:14 +0100
commitc5111117784d10ef3a9affc3f52fe83fb8e23973 (patch)
tree00573ecb2dad0c5f8de6816ffe12ed849e4092ec
parent42435af2481f706f0a50d7aff622dc4a099b84a9 (diff)
skip partial line
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rwxr-xr-xparse_aep.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse_aep.py b/parse_aep.py
index 53f0aa7..d5d7cdd 100755
--- a/parse_aep.py
+++ b/parse_aep.py
@@ -251,6 +251,10 @@ class AEP_parser:
self.fo.write("\n")
def output_power(self, array, hide):
+ #skip partial line. Most probably the last one
+ if len(array) < len(hide):
+ return
+
# write not hidden colums
self.fo.write(str(array[0]))
for i in range(1, len(array)):