Exclude cases when the job logs don't have final energy

svn-origin-rev: 17867
This commit is contained in:
Alfio Lazzaro 2017-04-24 17:30:48 +00:00
parent c919410a42
commit 53c148e71b

View file

@ -221,10 +221,15 @@ def main():
color='\033[0m'
endc='\033[0m'
for filename in args.file_lists:
comp=(float(files[filename][1])-ref)/ref
if abs(comp)>1e-14: color='\033[91m'
else: color='\033[0m'
print(('{0} ==> {1} : {2} : '+color+'{3}'+endc).format(files[filename][0],filename,files[filename][1],(float(files[filename][1])-ref)/ref))
if len(files[filename][1])>0:
comp=(float(files[filename][1])-ref)/ref
if abs(comp)>1e-14: color='\033[91m'
else: color='\033[0m'
print(('{0} ==> {1} : {2} : '+color+'{3}'+endc).format(files[filename][0],filename,files[filename][1],(float(files[filename][1])-ref)/ref))
else:
print(('{0} ==> {1} : ').format(files[filename][0],filename)),
sys.stdout.write(('-'*20).rjust(20))
print("")
print("")
@ -254,7 +259,7 @@ def main():
sys.stdout.write(index_key.ljust(35))
for filename in args.file_lists:
if index_key not in dict_stats[filename]:
sys.stdout.write(('-'*20).rjust(20))
sys.stdout.write(('-'*18).ljust(20))
continue
sys.stdout.write(dict_stats[filename][index_key].ljust(20))
print("")